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

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -