how to pass optional guid parameters in c#

90

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