how to pass optional guid parameters in c#

88

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;
}

Comments

Submit
0 Comments