I have a complex object graph that contains generic collections ( essentially an object graph for nhibernate)
i am trying to create a proxy for it, and in process i would like create a proxy for the Ilist member too, so i can trap all adds and removes. but when i try to do this using the method IList<Address> addrses = gen.CreateInterfaceProxyWithTarget(typeof (IList<Address>) , cust.Addresses, new ListInterceptor()) as IList<Address>; i get this error 'DynamicProxy cannot create an interface (with target) proxy for 'IEnumerable`1' as the target 'List`1' has an explicit implementation of one of the methods exposed by the interface. The runtime prevents use from invoking the private method on the target. Method System.Collections.Generic.IEnumerable<T>.GetEnumerator' should i be able to create proxies for collections in my object graphs ? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
