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

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -