Determining if a .NET type is dynamic (created using Reflection.Emit)
- by Diego Mijelshon
While the .NET 4 framework provides the Assembly.IsDynamic method, that's not the case with .NET 2.0/3.5.
The use case is simple: for logging purposes, I want to determine the underlying type name of an entity that might be wrapped by a dynamic proxy without having any references to NHibernate or Castle (which know about the proxy)
For example, I…