Example #1
0
        private static Type ProxyType(TypeConstruct type)
        {
            Type under = type.UnderlyingSystemType;

            if (TypeOf <MarshalByRefObject> .TypeID.IsAssignableFrom(under))
            {
                return(under);
            }
            else
            {
                return(TypeOf <MarshalByRefObject> .TypeID);
            }
        }
Example #2
0
 public VirtualObjectProxy(TypeConstruct type) : base(ProxyType(type))
 {
     VirtualType = type;
     Fields      = new FieldsData(this);
 }