Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

how to pass optional guid parameters in c#

public void Problem(Guid optional = default(Guid))
{
  // when called without parameters this will be true
  var guidIsEmpty = optional == Guid.Empty;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pass #optional #guid #parameters
ADD COMMENT
Topic
Name
3+3 =