c# - default(Nullable(type)) vs default(type) -
in c#, there difference between default(nullable<long>) (or default(long?)) , default(long) ?
long example, can other struct type.
well yes. default value of nullable or other reference type null while default value long or other value type 0 (and other members set defaults).
in case:
default(nullable<long>) == null default(long?) == null default(long) == 0l
Comments
Post a Comment