thanks ayende this is something i had not considered and is a flaw with my current hack.
On Jul 29, 10:41 am, Ayende Rahien <[email protected]> wrote: > If you need that, you can check the Location property of the assembly.But > that is just a side effect. > This will look like a proxy too: > > Assembly.Load(File.ReadAllBytes("Nhibernate.dll")); > > > > On Wed, Jul 29, 2009 at 3:31 AM, Simon <[email protected]> wrote: > > > Sorry i should have been a bit more specific. > > > My full question is > > > "I am using castle DynamicProxy and was wondering if there is a way of > > detecting if a Type is a proxy without referencing Castle > > DynamicProxy? > > So while I am using Castle DynamicProxy as an example I would like > > code that would work for any in memory generated type." > > > On Jul 29, 10:23 am, Ayende Rahien <[email protected]> wrote: > > > type.Assembly.FullName.StartsWith("DynamicProxyGenAssembly2") > > > > On Wed, Jul 29, 2009 at 3:17 AM, Simon <[email protected]> wrote: > > > > > Sorry for the cross post. > > > > I figure that, while this question is not specific to castle, the > > > > castle folk may have the answer > > > > >http://stackoverflow.com/questions/1193366/-Hide quoted text - > > > > - Show quoted text -- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en -~----------~----~----~----~------~----~------~--~---
