title: How can I recognise an EF POCO proxy without referencing EF?
body: <p>I need to spot EF POCO proxies; <a href="http://msdn.microsoft.com/en-us/library/ee835846.aspx" rel="noreferrer">MSDN</a> gives some hints based around <code>ObjectContext.GetObjectType(type.GetType())</code></p>
  
  <p>However, I would really like to do this without the EF reference. For example, with NHibernate, I can check whether the object implements a marker interface, using the name (as a string) <code>"NHibernate.Proxy.INHibernateProxy"</code>.</p>
  
  <p>Is there anything similar in EF POCO proxies? For example can I <em>rely</em> on them being in the namespace <code>System.Data.Entity.DynamicProxies.</code>, or is that brittle?</p>
  
  <p>Taking a peek inside reflector, it simply checks the assembly against internally tracked assemblies, which is problematic for me.</p>