Exactly what I need.  Thank you!

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of mjmein
Sent: Monday, February 02, 2009 1:27 AM
To: Castle Project Users
Subject: Re: get underlying type of proxy?


Hi

You can use Castle.MicroKernel.Proxy.ProxyUtil.GetUnproxiedType(--THE
OBJECT BEING PROXIED--)

This returns the underlying type of the object being proxied if it's a
proxy object, or the just the type of the object if it's not a proxy
object (in other words, it works wheter or not the object is a proxy).


On Jan 29, 4:48 am, Tyler Burd <[email protected]> wrote:
> I have a proxied instance of an object.  Is there a way to determine the 
> "real" type that is being proxied at runtime?
>
> So given the following:
>
> Real Type:  MyType
> Proxy Type:  MyTypeProxy124934553rikgnoi2
>
> If I have an instance of MyTypeProxy124934553rikgnoi2, how can I determine 
> programmatically that it wraps MyType?
>
> Thanks!
>
> Tyler



--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to