Nullable Types (C#)

I knew I can, I knew I can, I knew I can, I knew I can….

C#’s primitives thru the use of System.Nullable, can be made to support null.

To declare a type, lets say an int, as follows: int? x = null; then you now have a type that supports Null. The attached MSDN page tells more, be sure to follow the links to see samples of how it can be used.

Bookmark and Share

No related posts.

This entry was posted in Software Development. Bookmark the permalink.

Leave a Reply