System.MarshalByRefObject.CreateObjRef C# (CSharp) Method

CreateObjRef() private method

private CreateObjRef ( Type requestedType ) : ObjRef
requestedType Type
return System.Runtime.Remoting.ObjRef
        public virtual ObjRef CreateObjRef(Type requestedType)
        {
            if(__identity == null)
            {
                throw new RemotingException(Environment.GetResourceString(
                    "Remoting_NoIdentityEntry"));
            }            
            return new ObjRef(this, requestedType);
        }

Usage Example

Example #1
0
 static int CreateObjRef(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         System.MarshalByRefObject obj = (System.MarshalByRefObject)ToLua.CheckObject(L, 1, typeof(System.MarshalByRefObject));
         System.Type arg0 = (System.Type)ToLua.CheckObject(L, 2, typeof(System.Type));
         System.Runtime.Remoting.ObjRef o = obj.CreateObjRef(arg0);
         ToLua.PushObject(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
All Usage Examples Of System.MarshalByRefObject::CreateObjRef