Beispiel #1
0
 static public int GetObjectData(IntPtr l)
 {
     try {
                     #if DEBUG
         var    method     = System.Reflection.MethodBase.GetCurrentMethod();
         string methodName = GetMethodName(method);
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.BeginSample(methodName);
                     #else
         Profiler.BeginSample(methodName);
                     #endif
                     #endif
         System.Collections.Generic.Dictionary <System.Int32, System.String> self = (System.Collections.Generic.Dictionary <System.Int32, System.String>)checkSelf(l);
         System.Runtime.Serialization.SerializationInfo a1;
         checkType(l, 2, out a1);
         System.Runtime.Serialization.StreamingContext a2;
         checkValueType(l, 3, out a2);
         self.GetObjectData(a1, a2);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
             #if DEBUG
     finally {
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.EndSample();
                     #else
         Profiler.EndSample();
                     #endif
     }
             #endif
 }
Beispiel #2
0
 /// <summary>
 /// Populates a <see cref="T:System.Runtime.Serialization.SerializationInfo"/> with the data needed to serialize the target object.
 /// </summary>
 /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo"/> to populate with data. </param><param name="context">The destination (see <see cref="T:System.Runtime.Serialization.StreamingContext"/>) for this serialization. </param><exception cref="T:System.Security.SecurityException">The caller does not have the required permission. </exception>
 public void GetObjectData(SerializationInfo info, StreamingContext context)
 {
     if (info == null)
     {
         throw new ArgumentNullException("info");
     }
     dict.GetObjectData(info, context);
 }
Beispiel #3
0
 static public int GetObjectData(IntPtr l)
 {
     try {
         System.Collections.Generic.Dictionary <System.String, System.Object> self = (System.Collections.Generic.Dictionary <System.String, System.Object>)checkSelf(l);
         System.Runtime.Serialization.SerializationInfo a1;
         checkType(l, 2, out a1);
         System.Runtime.Serialization.StreamingContext a2;
         checkValueType(l, 3, out a2);
         self.GetObjectData(a1, a2);
         return(0);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static int GetObjectData(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         System.Collections.Generic.Dictionary <string, SingleData> obj  = (System.Collections.Generic.Dictionary <string, SingleData>)ToLua.CheckObject(L, 1, typeof(System.Collections.Generic.Dictionary <string, SingleData>));
         System.Runtime.Serialization.SerializationInfo             arg0 = (System.Runtime.Serialization.SerializationInfo)ToLua.CheckObject(L, 2, typeof(System.Runtime.Serialization.SerializationInfo));
         System.Runtime.Serialization.StreamingContext arg1 = (System.Runtime.Serialization.StreamingContext)ToLua.CheckObject(L, 3, typeof(System.Runtime.Serialization.StreamingContext));
         obj.GetObjectData(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Beispiel #5
0
    static int GetObjectData(IntPtr L)
    {
        try
        {
            ToLua.CheckArgsCount(L, 3);
            System.Collections.Generic.Dictionary <int, TestAccount> obj  = (System.Collections.Generic.Dictionary <int, TestAccount>)ToLua.CheckObject(L, 1, TypeTraits <System.Collections.Generic.Dictionary <int, TestAccount> > .type);
            System.Runtime.Serialization.SerializationInfo           arg0 = ToLua.CheckObject <System.Runtime.Serialization.SerializationInfo>(L, 2);
            System.Runtime.Serialization.StreamingContext            arg1 = StackTraits <System.Runtime.Serialization.StreamingContext> .Check(L, 3);

            obj.GetObjectData(arg0, arg1);
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
    static int GetObjectData(IntPtr L)
    {
        try
        {
            ToLua.CheckArgsCount(L, 3);
            System.Collections.Generic.Dictionary <int, UnityEngine.GameObject> obj = (System.Collections.Generic.Dictionary <int, UnityEngine.GameObject>)ToLua.CheckObject(L, 1, typeof(System.Collections.Generic.Dictionary <int, UnityEngine.GameObject>));
            System.Runtime.Serialization.SerializationInfo arg0 = (System.Runtime.Serialization.SerializationInfo)ToLua.CheckObject(L, 2, typeof(System.Runtime.Serialization.SerializationInfo));
            System.Runtime.Serialization.StreamingContext  arg1 = StackTraits <System.Runtime.Serialization.StreamingContext> .Check(L, 3);

            obj.GetObjectData(arg0, arg1);
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
    static int GetObjectData(IntPtr L)
    {
        ToLua.CheckArgsCount(L, 3);
        System.Collections.Generic.Dictionary <int, TestAccount> obj  = (System.Collections.Generic.Dictionary <int, TestAccount>)ToLua.CheckObject(L, 1, typeof(System.Collections.Generic.Dictionary <int, TestAccount>));
        System.Runtime.Serialization.SerializationInfo           arg0 = (System.Runtime.Serialization.SerializationInfo)ToLua.CheckObject(L, 2, typeof(System.Runtime.Serialization.SerializationInfo));
        System.Runtime.Serialization.StreamingContext            arg1 = (System.Runtime.Serialization.StreamingContext)ToLua.CheckObject(L, 3, typeof(System.Runtime.Serialization.StreamingContext));

        try
        {
            obj.GetObjectData(arg0, arg1);
        }
        catch (Exception e)
        {
            LuaDLL.luaL_error(L, e.Message);
            return(0);
        }

        return(0);
    }