What C# data types can be nullable types?
Posted
by Randy Minder
on Stack Overflow
See other posts from Stack Overflow
or by Randy Minder
Published on 2010-05-14T12:59:31Z
Indexed on
2010/05/14
13:04 UTC
Read the original article
Hit count: 255
c#
Can someone give me a list, or point me to where I can find a list of C# data types that can be a nullable type?
For example:
I know that Nullable<int>
is ok
I know that Nullable<byte[]>
is not.
I'd like to know which types are nullable and which are not. BTW, I know I can test for this at runtime. However, this is for a code generator we're writing, so I don't have an actual type. I just know that a column is "string" or "int32" etc.
Thanks.
© Stack Overflow or respective owner