Hi Guys,
Here's my method:
public void SomeQuery(string email = "", Guid userId = Guid.Empty)
{
// do some query
}
userId
is giving me an error as it must be a compile-time constant, which i understand. But even when i declare a const:
private const emptyGuid = Guid.Empty;
then change the method signature to:
public void SomeQuery(string email = "", Guid userId = emptyGuid)
{
// do some query
}
still no love.
What am i missing?