How to Indicate a Nullable Value's Original Data Type in C# -


is there bool.null indicate boolean type's null value in c#?

thanks

boolean value-type. cannot equal null @ case.

however, if nullable boolean, can directly compare null:

bool? b = getbooleanfromsomewhere();  if (b == null)     // null 

p.s. there no "boolean type's null value".
classes not have "own null values". there null.


Comments

Popular posts from this blog

java - Solr query version issue: Invalid version or the data in not in 'javabin' format -

Hard vs. Soft Water: What's The Difference?

The Ten Most Livable Cities In The World