public void method_1(Delegate9 delegate91) { var @delegate = _delegate90; Delegate9 delegate2; do { delegate2 = @delegate; var value = (Delegate9)Delegate.Combine(delegate2, delegate91); @delegate = Interlocked.CompareExchange(ref _delegate90, value, delegate2); } while (@delegate != delegate2); }
private void method_5(Delegate9 A_0, object A_1) { int num = 8; if (A_0 == null) { throw new ArgumentNullException(BookmarkStart.b("䴭儯帱堳匵䨷", num)); } Interface38 interface2 = null; int errorCode = this.interface40_0.imethod_8(0, IntPtr.Zero, 0, ref interface2); if (errorCode != 0) { throw new ExternalException(BookmarkStart.b("紭䐯䀱儳圵唷ᨹ礻倽㔿⽁⅃㑅⥇㹉╋⅍㹏牑᭓♕㵗⡙㵛⩝य़ൡ䙥୩իɭᕯᙱ", num), errorCode); } if (interface2 == null) { throw new SystemException(BookmarkStart.b("洭儯就娳夵䰷ᨹ嬻嬽㐿扁ൃͅ♇㽉⅋ᵍяፑSՕᵙ籛㝝ᙡţᑥ୩ཫ୭偯qᅳၵᵷࡹቻᵽꊁ겋ﶍラル", num)); } errorCode = interface2.imethod_2(); if (errorCode != 0) { throw new ExternalException(BookmarkStart.b("紭䐯䀱儳圵唷ᨹ礻倽㔿⽁⅃㑅⥇㹉╋⅍㹏牑᭓♕㵗⡙㵛⩝य़ൡ䙥୩իɭᕯᙱ", num), errorCode); } Struct3 struct2 = new Struct3(); uint num3 = 0; errorCode = interface2.imethod_0(1, ref struct2, ref num3); while (errorCode == 0) { if (1 != num3) { break; } A_0(struct2, A_1); errorCode = interface2.imethod_0(1, ref struct2, ref num3); } if ((errorCode > 1) || (errorCode < 0)) { throw new ExternalException(BookmarkStart.b("紭䐯䀱儳圵唷ᨹ礻倽㔿⽁⅃㑅⥇㹉╋⅍㹏牑᭓♕㵗⡙㵛⩝य़ൡ䙥୩իɭᕯᙱ", num), errorCode); } Marshal.ReleaseComObject(interface2); interface2 = null; }
internal int method_7(byte[] byte_0, out IntPtr intptr_0) { IntPtr procAddress = GetProcAddress(this.int_0, "CallTax"); if (procAddress == IntPtr.Zero) { if (this.ctaxCardMode_0 == CTaxCardMode.tcmHave) { Class20.smethod_7("库未加载"); } else if (this.ctaxCardMode_0 == CTaxCardMode.tcmNone) { Class20.smethod_7("无卡模式下用户不能调用金税设备功能"); } } Delegate9 delegateForFunctionPointer = (Delegate9)Marshal.GetDelegateForFunctionPointer(procAddress, typeof(Delegate9)); if (delegateForFunctionPointer == null) { Class20.smethod_7("调用函数委托不能是空"); } return(delegateForFunctionPointer(byte_0, out intptr_0)); }