NHibernate.ByteCode.Castle A for use with the Castle Dynamic Class Generator. Initializes a new object. The Class to Proxy. The Id of the Object we are Proxying. The ISession this Proxy is in. Invoke the actual Property/Method using the Proxy or instantiate the actual object and use it when the Proxy can't handle the method. The from the generated Castle.DynamicProxy. Build a proxy using the Castle.DynamicProxy library. The value for the Id. The Session the proxy is in. A fully built INHibernateProxy.