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
PropertyInfo propertyInfo = ... bool canAssignNull = !propertyInfo.PropertyType.IsValueType || propertyInfo.PropertyType.IsGenericType && propertyInfo.PropertyType.GetGenericTypeDefinition() == typeof(Nullable<>)