コード例 #1
0
ファイル: Class116.cs プロジェクト: jollitycn/JGNet
 private void method_19(ulong ulong_2, ulong ulong_3, ulong[] ulong_4)
 {
     if (ulong_4.Length != 0)
     {
         lock (this.object_2)
         {
             for (int i = 0; i < ulong_4.Length; i++)
             {
                 ulong num2 = ulong_4[i];
                 if (i == 0)
                 {
                     this.class161_0.method_5(num2 - ((ulong)1L));
                 }
                 Class145 class2 = this.class161_0.method_8(num2);
                 if ((class2 != null) && !this.sortedArray_0.Contains(num2))
                 {
                     this.interface15_0.Send(class2.method_1(), this.ipendPoint_0);
                     this.sortedArray_1.Add(num2);
                     this.uint_0++;
                 }
                 if (i < (ulong_4.Length - 1))
                 {
                     this.class161_0.sJirjHxlxv(num2 + ((ulong)1L), ulong_4[i + 1] - ((ulong)1L));
                 }
             }
             SortedArray <ulong> array = this.sortedArray_0;
             this.sortedArray_0 = this.sortedArray_1;
             this.sortedArray_1 = array;
             this.sortedArray_1.Clear();
         }
     }
 }
コード例 #2
0
ファイル: Class116.cs プロジェクト: jollitycn/JGNet
 public void method_16(int int_5)
 {
     if (this.object_1 == false)
     {
         Class145 class2 = this.class161_0.method_10();
         if (class2 != null)
         {
             TimeSpan span = (TimeSpan)(DateTime.Now - class2.method_2());
             if (span.TotalSeconds > 30.0)
             {
                 this.Close(SessionClosedCause.ResendTimeout, true);
                 return;
             }
             this.interface15_0.Send(class2.method_1(), this.ipendPoint_0);
             this.uint_0++;
         }
         this.int_3 += int_5;
         if (this.int_3 >= 0x2710)
         {
             this.method_17();
             this.int_3   = 0;
             this.ulong_1 = this.uint_0;
             this.int_4   = 0;
         }
     }
 }
コード例 #3
0
ファイル: Class116.cs プロジェクト: jollitycn/JGNet
    public OutUdpSessionState method_20()
    {
        ulong    num    = 0L;
        Class145 class2 = this.class161_0.method_10();

        if (class2 != null)
        {
            num = class2.method_0();
        }
        return(new OutUdpSessionState(this.ipendPoint_0, this.string_0, this.dateTime_0, this.int_2, this.class161_0.method_4(), num, (ulong)this.uint_0, this.ulong_0, this.feedbackVacancyBody_0.MaxIDInReceivedCache, 0, this.ushort_0, 0L, 0L, 0L));
    }
コード例 #4
0
        DynamicMetaObject DynamicMetaObject.BindGetMember(GetMemberBinder binder)
        {
            Class145 <T> class2 = new Class145 <T> {
                getMemberBinder_0 = binder,
                class143_0        = (Class143 <T>) this
            };

            if (!this.method_0("TryGetMember"))
            {
                return(base.BindGetMember(class2.getMemberBinder_0));
            }
            return(this.method_1("TryGetMember", class2.getMemberBinder_0, Class143 <T> .expression_0, new Delegate2 <T>(class2.method_0), null));
        }
コード例 #5
0
 internal void method_0(Class764 A_0, Class146 A_1, int A_2)
 {
     this.class764_0 = A_0;
     this.class145_0 = A_1.method_15(A_2);
 }
コード例 #6
0
 public abstract void Visit(Class145 c);
コード例 #7
0
 public override void Visit(Class145 c) { }
コード例 #8
0
ファイル: Class99.cs プロジェクト: unionjl/CyberAIO
    // Token: 0x060004E5 RID: 1253 RVA: 0x00028164 File Offset: 0x00026364
    public static Class139 smethod_1(object object_0, Type type_0)
    {
        Class139 @class = object_0 as Class139;

        if (@class != null)
        {
            return(@class);
        }
        if (type_0 == null)
        {
            if (object_0 == null)
            {
                return(new Class166());
            }
            type_0 = object_0.GetType();
        }
        type_0 = Class102.smethod_1(type_0);
        if (type_0 == Class28.type_0)
        {
            @class = new Class166();
            if (object_0 != null && object_0.GetType() != Class28.type_0)
            {
                @class.method_1(object_0.GetType());
            }
        }
        else if (Class99.smethod_0 <Array>(type_0))
        {
            @class = new Class140();
        }
        else if (Class99.smethod_0 <string>(type_0))
        {
            @class = new Class143();
        }
        else if (Class99.smethod_0 <IntPtr>(type_0))
        {
            @class = new Class146();
        }
        else if (Class99.smethod_0 <UIntPtr>(type_0))
        {
            @class = new Class157();
        }
        else if (Class99.smethod_0 <ulong>(type_0))
        {
            @class = new Class165();
        }
        else if (Class99.smethod_0 <uint>(type_0))
        {
            @class = new Class163();
        }
        else if (Class99.smethod_0 <ushort>(type_0))
        {
            @class = new Class159();
        }
        else if (Class99.smethod_0 <long>(type_0))
        {
            @class = new Class156();
        }
        else if (Class99.smethod_0 <int>(type_0))
        {
            @class = new Class145();
        }
        else if (Class99.smethod_0 <short>(type_0))
        {
            @class = new Class141();
        }
        else if (Class99.smethod_0 <byte>(type_0))
        {
            @class = new Class164();
        }
        else if (Class99.smethod_0 <sbyte>(type_0))
        {
            @class = new Class161();
        }
        else if (Class99.smethod_0 <double>(type_0))
        {
            @class = new Class158();
        }
        else if (Class99.smethod_0 <float>(type_0))
        {
            @class = new Class162();
        }
        else if (Class99.smethod_0 <bool>(type_0))
        {
            @class = new Class144();
        }
        else if (Class99.smethod_0 <char>(type_0))
        {
            @class = new Class155();
        }
        else if (Class28.smethod_0(type_0))
        {
            Class166 class2 = new Class166();
            class2.method_1(type_0);
            @class = class2;
        }
        else
        {
            if (Class99.smethod_0 <Enum>(type_0))
            {
                Enum enum_;
                if (object_0 == null)
                {
                    if (type_0 == Class28.type_2)
                    {
                        enum_ = null;
                    }
                    else
                    {
                        enum_ = (Enum)Activator.CreateInstance(type_0);
                    }
                }
                else if (type_0 == Class28.type_2 && object_0 is Enum)
                {
                    enum_ = (Enum)object_0;
                }
                else
                {
                    enum_ = (Enum)Enum.ToObject(type_0, object_0);
                }
                return(new Class160(enum_));
            }
            if (Class99.smethod_0 <ValueType>(type_0))
            {
                if (object_0 == null)
                {
                    object object_;
                    if (type_0 == Class28.type_3)
                    {
                        object_ = null;
                    }
                    else
                    {
                        object_ = Activator.CreateInstance(type_0);
                    }
                    @class = new Class154(object_);
                }
                else
                {
                    if (object_0.GetType() != type_0)
                    {
                        try
                        {
                            object_0 = Convert.ChangeType(object_0, type_0);
                        }
                        catch
                        {
                        }
                    }
                    @class = new Class154(object_0);
                }
                return(@class);
            }
            @class = new Class166();
        }
        if (object_0 != null)
        {
            @class.vmethod_1(object_0);
        }
        return(@class);
    }