コード例 #1
0
    internal Class517 method_5(byte[] A_0)
    {
        HMACSHA1 hmacsha = new HMACSHA1 {
            Key = Class517.byte_0
        };
        Class299 class2 = new Class299();
        Class517 class3 = null;

        using (Dictionary <int, Class517> .ValueCollection.Enumerator enumerator = this.dictionary_0.Values.GetEnumerator())
        {
            Class517 current;
            while (enumerator.MoveNext())
            {
                current = enumerator.Current;
                if ((!current.method_7() && (current.byte_1 != null)) && ((current.byte_1.Length == A_0.Length) && class2.method_15(current.method_4(), hmacsha.ComputeHash(A_0))))
                {
                    goto Label_0077;
                }
            }
            goto Label_008A;
Label_0077:
            class3 = current;
        }
Label_008A:
        if (class3 == null)
        {
            class3 = new Class517(this.document_0, A_0);
            this.method_2(class3);
        }
        A_0 = null;
        class3.method_6(class3.method_5() + 1);
        return(class3);
    }
コード例 #2
0
ファイル: Class6.cs プロジェクト: pengxinglove/PersonalSpire
 void ParagraphBase.CloneRelationsTo(Document A_0, OwnerHolder A_1)
 {
     base.CloneRelationsTo(A_0, A_1);
     if (this.method_40().Count > 0)
     {
         string[] array = new string[this.method_40().Count];
         this.method_40().Keys.CopyTo(array, 0);
         for (int i = 0; i < array.Length; i++)
         {
             Class517 class2 = this.method_40()[array[i]];
             if (class2.method_7())
             {
                 class2 = A_0.Images.method_6(class2.byte_1, true);
             }
             else
             {
                 class2 = A_0.Images.method_5(class2.method_3());
             }
             this.method_40()[array[i]] = class2;
         }
     }
     if ((A_0.DocxPackage == null) && (base.Document.DocxPackage != null))
     {
         A_0.DocxPackage = base.Document.DocxPackage.method_25();
     }
     else if ((A_0.DocxPackage != null) && (base.Document.DocxPackage != null))
     {
         this.method_47(A_0);
     }
 }
コード例 #3
0
    internal Class517 method_16()
    {
        Class517 class2 = (Class517)base.MemberwiseClone();

        class2.byte_1 = (byte[])this.byte_1.Clone();
        return(class2);
    }
コード例 #4
0
    internal Class517 method_7(byte[] A_0)
    {
        Image image = Class517.smethod_0(A_0);

        if (image is Metafile)
        {
            return(this.method_6(A_0, false));
        }
        return(this.method_5(A_0));
    }
コード例 #5
0
    byte[] Interface50.imethod_3(string A_0)
    {
        string key = this.method_0().method_459(A_0, false, false);

        if (this.method_0().method_0().ContainsKey(key))
        {
            return(this.document_0.Images.method_0(this.method_0().method_0()[key]).method_3());
        }
        byte[]   buffer = this.method_0().method_460(key);
        Class517 class3 = new Class517(buffer);

        this.document_0.Images.method_2(class3);
        this.method_0().method_0().Add(key, class3.method_0());
        return(buffer);
    }
コード例 #6
0
        private void method_9(System.Drawing.Image A_0)
        {
            int num = 5;

            if (A_0 == null)
            {
                throw new ArgumentNullException(BookmarkStart.b("䈪䀬丮嘰嘲", num));
            }
            if (A_0 is Metafile)
            {
                this.class517_0 = base.Document.Images.method_6(DocPicture.smethod_3(A_0 as Metafile), false);
            }
            else
            {
                this.class517_0 = base.Document.Images.method_5(DocPicture.smethod_4(A_0));
            }
            this.class517_0.method_18(A_0);
        }
コード例 #7
0
    internal Class517 method_6(byte[] A_0, bool A_1)
    {
        int length = A_0.Length;

        if (!A_1)
        {
            A_0 = this.method_8(A_0);
        }
        HMACSHA1 hmacsha = new HMACSHA1 {
            Key = Class517.byte_0
        };
        Class299 class3 = new Class299();
        Class517 class2 = null;

        using (Dictionary <int, Class517> .ValueCollection.Enumerator enumerator = this.dictionary_0.Values.GetEnumerator())
        {
            Class517 current;
            while (enumerator.MoveNext())
            {
                current = enumerator.Current;
                if ((current.method_7() && (current.byte_1.Length == A_0.Length)) && class3.method_15(current.method_4(), hmacsha.ComputeHash(A_0)))
                {
                    goto Label_007F;
                }
            }
            goto Label_0092;
Label_007F:
            class2 = current;
        }
Label_0092:
        if (class2 == null)
        {
            class2 = new Class517(this.document_0, A_0);
            this.method_2(class2);
            if (!A_1)
            {
                class2.method_14(length);
            }
        }
        A_0 = null;
        class2.method_6(class2.method_5() + 1);
        class2.method_8(true);
        return(class2);
    }
コード例 #8
0
 internal void method_6(Document A_0)
 {
     if (this.class517_0 != null)
     {
         Class517 class2 = this.class517_0;
         if (class2.method_7())
         {
             this.class517_0 = A_0.Images.method_6(class2.byte_1, true);
         }
         else
         {
             this.class517_0 = A_0.Images.method_5(class2.method_3());
         }
         this.class517_0.method_10(class2.method_9());
         this.class517_0.method_12(class2.method_11());
         this.class517_0.method_14(class2.method_13());
         class2.method_17();
         class2 = null;
     }
 }
コード例 #9
0
    internal void method_2(Class517 A_0)
    {
        int num = 1;

        if (this.list_0.Count > 0)
        {
            num = this.list_0[0];
            this.list_0.RemoveAt(0);
        }
        else if (this.dictionary_0.Count > 0)
        {
            num = ++this.int_0;
        }
        else
        {
            this.int_0++;
        }
        A_0.method_1(num);
        this.dictionary_0.Add(num, A_0);
    }