Exemplo n.º 1
0
 public void Dispose()
 {
     lock (_object0)
     {
         if (_thread0 != null)
         {
             try
             {
                 _bool0 = true;
                 if (_intptr0 != IntPtr.Zero)
                 {
                     Class162.waveOutReset(_intptr0);
                 }
                 _thread0.Join();
                 _delegate30 = null;
                 method_8();
                 if (_intptr0 != IntPtr.Zero)
                 {
                     var @class = new Class161();
                     @class.Class1590 = this;
                     @class.Intptr0   = _intptr0;
                     ThreadPool.QueueUserWorkItem(@class.method_0);
                 }
             }
             finally
             {
                 _thread0 = null;
                 _intptr0 = IntPtr.Zero;
             }
         }
     }
     GC.SuppressFinalize(this);
 }
Exemplo n.º 2
0
 // Token: 0x0600072D RID: 1837 RVA: 0x0003C7AC File Offset: 0x0003A9AC
 public static byte[] smethod_3(long long_0)
 {
     if (BitConverter.IsLittleEndian)
     {
         return(BitConverter.GetBytes(long_0));
     }
     byte[] array = new byte[8];
     Class161.smethod_1(long_0, array, 0);
     return(array);
 }
Exemplo n.º 3
0
 // Token: 0x0600072C RID: 1836 RVA: 0x0003C780 File Offset: 0x0003A980
 public static byte[] smethod_2(int int_0)
 {
     if (BitConverter.IsLittleEndian)
     {
         return(BitConverter.GetBytes(int_0));
     }
     byte[] array = new byte[4];
     Class161.smethod_0(int_0, array, 0);
     return(array);
 }
Exemplo n.º 4
0
    // Token: 0x060006C2 RID: 1730 RVA: 0x00038EC8 File Offset: 0x000370C8
    public static byte[] smethod_5(string string_0)
    {
        if (Class157.stream_0 == null)
        {
            Class157.stream_0 = Class157.smethod_0();
        }
        long num = Class157.smethod_11(string_0);

        byte[] array = new byte[4];
        Class157.smethod_9(num, array, 0, 4);
        int num2 = Class161.smethod_4(array, 0);

        Array.Clear(array, 0, array.Length);
        byte[] array2 = new byte[num2];
        Class157.smethod_9(num + 4L, array2, 0, num2);
        return(array2);
    }
Exemplo n.º 5
0
    // Token: 0x06000ED4 RID: 3796 RVA: 0x00045B54 File Offset: 0x00043D54
    private Class156 method_16(char char_1, bool bool_0)
    {
        List <string> list = null;

        while (this.int_0 < this.string_0.Length)
        {
            string text = this.method_12();
            this.method_5();
            this.method_17("Path ended with open indexer.");
            if (this.string_0[this.int_0] == char_1)
            {
                if (list == null)
                {
                    return(Class155.smethod_0(text, bool_0));
                }
                list.Add(text);
                if (!bool_0)
                {
                    Class161 @class = new Class161();
                    @class.method_1(list);
                    return(@class);
                }
                Class166 class2 = new Class166();
                class2.method_1(list);
                return(class2);
            }
            else
            {
                if (this.string_0[this.int_0] != ',')
                {
                    throw new JsonException("Unexpected character while parsing path indexer: " + this.string_0[this.int_0].ToString());
                }
                this.int_0++;
                this.method_5();
                if (list == null)
                {
                    list = new List <string>();
                }
                list.Add(text);
            }
        }
        throw new JsonException("Path ended with open indexer.");
    }
 public abstract void Visit(Class161 c);
 public override void Visit(Class161 c) { }
Exemplo n.º 8
0
    // 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);
    }
Exemplo n.º 9
0
 internal Class700(FootnoteType A_0)
 {
     this.footnoteType_0 = A_0;
     this.class161_0     = new Class161();
     this.class151_0     = new Class151();
 }