Пример #1
0
        // Token: 0x06001A35 RID: 6709 RVA: 0x00065CAC File Offset: 0x00063EAC
        public static global::InterpTimedEvent.ArgList New(object[] args)
        {
            int num = (args != null) ? args.Length : 0;

            if (num == 0)
            {
                return(global::InterpTimedEvent.ArgList.voidParameters);
            }
            global::InterpTimedEvent.ArgList argList;
            if (global::InterpTimedEvent.ArgList.dumps.Length > num)
            {
                argList = global::InterpTimedEvent.ArgList.Recycle(ref global::InterpTimedEvent.ArgList.dumps[num], num);
            }
            else
            {
                argList = new global::InterpTimedEvent.ArgList(num);
            }
            for (int i = 0; i < num; i++)
            {
                object obj = args[i];
                argList.parameters[i] = obj;
                argList.types[i]      = ((obj != null) ? obj.GetType() : typeof(void));
            }
            return(argList);
        }
Пример #2
0
 // Token: 0x06001A34 RID: 6708 RVA: 0x00065C5C File Offset: 0x00063E5C
 private static global::InterpTimedEvent.ArgList Recycle(ref global::InterpTimedEvent.ArgList.Dump dump, int length)
 {
     if (dump.count > 0)
     {
         global::InterpTimedEvent.ArgList last = dump.last;
         dump.last = last.dumpNext;
         dump.count--;
         last.dumpNext = null;
         last.disposed = false;
         return(last);
     }
     return(new global::InterpTimedEvent.ArgList(length));
 }