I wish to automagically discover some information on a provided class to do something akin to form entry. Specifically I am using reflection to return a PropertyInfo value f
You need to handle null references and Nullable, so (in turn):
null
Nullable
bool canBeNull = !type.IsValueType || (Nullable.GetUnderlyingType(type) != null);
Note that IsByRef is something different, that allows you to choose between int and ref int / out int.
IsByRef
int
ref int
out int