コード例 #1
0
    private Dictionary <int, string> method_10(Stream A_0)
    {
        byte[] buffer = new byte[4];
        int    num    = Class1115.smethod_1(A_0, buffer);
        Dictionary <int, string> dictionary = new Dictionary <int, string>();

        for (int i = 0; i < num; i++)
        {
            int    key = Class1115.smethod_1(A_0, buffer);
            string str = Class1115.smethod_6(A_0, -1);
            dictionary.Add(key, str);
        }
        return(dictionary);
    }
コード例 #2
0
    private object method_5(PropertyType A_0, Stream A_1, int A_2)
    {
        byte[] buffer = new byte[8];
        object obj2   = null;

        switch (A_0)
        {
        case PropertyType.Empty:
        case PropertyType.Null:
            return(null);

        case PropertyType.Int16:
            obj2          = Class1115.smethod_0(A_1, buffer);
            A_1.Position += 2L;
            return(obj2);

        case PropertyType.Int32:
        case PropertyType.Int:
            return(Class1115.smethod_1(A_1, buffer));

        case PropertyType.Double:
            return(Class1115.smethod_2(A_1, buffer));

        case PropertyType.Bool:
            return(Class1115.smethod_1(A_1, buffer) != 0);

        case PropertyType.Object:
            return(this.method_9(A_1, A_2 - 4));

        case PropertyType.UInt32:
            return((uint)Class1115.smethod_0(A_1, buffer));

        case PropertyType.AsciiString:
            return(Class1115.smethod_6(A_1, A_2 - 4));

        case PropertyType.String:
            return(Class1115.smethod_7(A_1, A_2 - 4));

        case PropertyType.DateTime:
            return(this.method_8(A_1, buffer));

        case PropertyType.Blob:
            return(this.method_6(A_1, buffer));

        case PropertyType.ClipboardData:
            return(this.method_7(A_1, buffer));
        }
        throw new NotImplementedException();
    }