|
-
Nov 13th, 2006, 04:05 AM
#1
Thread Starter
Lively Member
Nullable type
Hi,
How can I retrieve the base type from an nullable type?
For example, I've got a nullable Int64.
GetType would give me this: -
{Name = "Nullable`1" FullName = "System.Nullable`1[[System.Int64, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]"} System.Type {System.RuntimeType}
However I want the type to contain System.Int64, not System.Nullable.
I need this because the type is going into a datatable, and I can't add columns with a nullable type in it.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|