private static Type ProxyType(TypeConstruct type) { Type under = type.UnderlyingSystemType; if (TypeOf <MarshalByRefObject> .TypeID.IsAssignableFrom(under)) { return(under); } else { return(TypeOf <MarshalByRefObject> .TypeID); } }
public VirtualObjectProxy(TypeConstruct type) : base(ProxyType(type)) { VirtualType = type; Fields = new FieldsData(this); }