Narshe,
That would work, but that would tell you that only if the type is
nullable of bool, not nullable in general.
Also, ANY structure can be used in Nullable<T>. The only requirement is
that T is a structure.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Narshe" <na****@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
Yes, not all value types are nullable though.
Would this work?
if( field.FieldType == typeof( Nullable<bool> ) ){}
Where field is of type FieldInfo.