P
Peter K
Hi - should the following compile? I ask because a Guid is a struct and can
never be null... The worst the compiler throws at me is an "unreachable
code" warning.
public string GetData(Guid id)
{
if (id == null)
throw new ArgumentNotNullException("");
string s = null;
// do stuff...
return s;
}
Thanks,
/Peter
never be null... The worst the compiler throws at me is an "unreachable
code" warning.
public string GetData(Guid id)
{
if (id == null)
throw new ArgumentNotNullException("");
string s = null;
// do stuff...
return s;
}
Thanks,
/Peter