Skip to content

How can I convert an int? to Option.Some<uint>? #78

@redundancer

Description

@redundancer
private static void Main(string[] args){
  var number = MyMethod1();
  // How to use number in method 2?
}

int? MyMethod1(){
  return 1;
}

void MyMethod2(Option<uint> aNumber){
  // Do Something.
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions