Hello,
first of all, I'm using .NET Framework 3.5.
I have a class with a public nullable property (DateTime?). I need to have a PropertyInfo of this property, but I am getting null when calling this code:
PropertyInfo pi = typeof([MyClassName]).GetProperty([NullablePropertyName]);
I can see in watch when debugging that the real type is System.Reflection.RuntimePropertyInfo. But when I try to assign it to variable of object type, I have still null.
Q: How can I get the PropertyInfo of nullable property? I have list of properties and I call GetValue/SetValue later in my code.