I have a class ObjectMapper<T> . Is there any way in .NET 4.0 to tell if typeof(T) is dynamic? I want to be able to determine inside a member method whether the class was initialized as new ObjectMapper<dynamic>() vs. new ObjectMapper<SomeConcreteClass>().
I have a class ObjectMapper<T> . Is there any way in .NET 4.0 to
Share
You do this by checking if an instance is of type
IDynamicMetaObjectProvideror you can check whether the type implementsIDynamicMetaObjectProvider.