148 lines
6.5 KiB
C#
148 lines
6.5 KiB
C#
using System;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.IsisMtt.X509
|
|
{
|
|
// Token: 0x02001FA4 RID: 8100
|
|
[Token(Token = "0x2001FA4")]
|
|
public class MonetaryLimit : Asn1Encodable
|
|
{
|
|
// Token: 0x0600CACE RID: 51918 RVA: 0x002E0678 File Offset: 0x002DE878
|
|
[Token(Token = "0x600CACE")]
|
|
[Address(RVA = "0x2EB0280", Offset = "0x2EAF280", VA = "0x182EB0280")]
|
|
public static MonetaryLimit GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600CACE)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.IsisMtt.X509.MonetaryLimit BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.IsisMtt.X509.MonetaryLimit::GetInstance(System.Object)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_5A:
|
|
stloc:string(var_13_60, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
|
stloc:ArgumentException(var_14_78, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_13_60)), ldstr:string("obj")))
|
|
}
|
|
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
|
--- End of inner exception stack trace ---
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
|
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x0600CACF RID: 51919 RVA: 0x002E0700 File Offset: 0x002DE900
|
|
[Token(Token = "0x600CACF")]
|
|
[Address(RVA = "0x2EB0790", Offset = "0x2EAF790", VA = "0x182EB0790")]
|
|
private MonetaryLimit(Asn1Sequence seq)
|
|
{
|
|
Asn1SequenceParser parser = seq.Parser;
|
|
DerPrintableString derPrintableString;
|
|
this.currency = derPrintableString;
|
|
Asn1SequenceParser parser2 = seq.Parser;
|
|
DerInteger derInteger;
|
|
this.amount = derInteger;
|
|
Asn1SequenceParser parser3 = seq.Parser;
|
|
DerInteger derInteger2;
|
|
this.exponent = derInteger2;
|
|
}
|
|
|
|
// Token: 0x0600CAD0 RID: 51920 RVA: 0x002E0748 File Offset: 0x002DE948
|
|
[Token(Token = "0x600CAD0")]
|
|
[Address(RVA = "0x2EB06C0", Offset = "0x2EAF6C0", VA = "0x182EB06C0")]
|
|
public MonetaryLimit(string currency, int amount, int exponent)
|
|
{
|
|
DerPrintableString derPrintableString = new DerPrintableString(currency, true);
|
|
this.currency = derPrintableString;
|
|
DerInteger derInteger = new DerInteger(amount);
|
|
this.amount = derInteger;
|
|
DerInteger derInteger2 = new DerInteger(amount);
|
|
this.exponent = derInteger2;
|
|
}
|
|
|
|
// Token: 0x17001FB2 RID: 8114
|
|
// (get) Token: 0x0600CAD1 RID: 51921 RVA: 0x002E0788 File Offset: 0x002DE988
|
|
[Token(Token = "0x17001FB2")]
|
|
public virtual string Currency
|
|
{
|
|
[Token(Token = "0x600CAD1")]
|
|
[Address(RVA = "0x4DB0F0", Offset = "0x4DA0F0", VA = "0x1804DB0F0", Slot = "6")]
|
|
get
|
|
{
|
|
Asn1Object asn1Object = this.currency.ToAsn1Object();
|
|
throw new NullReferenceException();
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001FB3 RID: 8115
|
|
// (get) Token: 0x0600CAD2 RID: 51922 RVA: 0x002E07A8 File Offset: 0x002DE9A8
|
|
[Token(Token = "0x17001FB3")]
|
|
public virtual BigInteger Amount
|
|
{
|
|
[Token(Token = "0x600CAD2")]
|
|
[Address(RVA = "0x2E80530", Offset = "0x2E7F530", VA = "0x182E80530", Slot = "7")]
|
|
get
|
|
{
|
|
return this.amount.Value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001FB4 RID: 8116
|
|
// (get) Token: 0x0600CAD3 RID: 51923 RVA: 0x002E07C8 File Offset: 0x002DE9C8
|
|
[Token(Token = "0x17001FB4")]
|
|
public virtual BigInteger Exponent
|
|
{
|
|
[Token(Token = "0x600CAD3")]
|
|
[Address(RVA = "0x2E80550", Offset = "0x2E7F550", VA = "0x182E80550", Slot = "8")]
|
|
get
|
|
{
|
|
return this.exponent.Value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600CAD4 RID: 51924 RVA: 0x002E07E8 File Offset: 0x002DE9E8
|
|
[Token(Token = "0x600CAD4")]
|
|
[Address(RVA = "0x2EB0550", Offset = "0x2EAF550", VA = "0x182EB0550", Slot = "5")]
|
|
public override Asn1Object ToAsn1Object()
|
|
{
|
|
Asn1Encodable[] array = new Asn1Encodable[3];
|
|
DerPrintableString derPrintableString = this.currency;
|
|
if (derPrintableString != 0)
|
|
{
|
|
}
|
|
array[0] = derPrintableString;
|
|
DerInteger derInteger = this.amount;
|
|
if (derInteger != 0)
|
|
{
|
|
}
|
|
array[1] = derInteger;
|
|
DerInteger derInteger2 = this.exponent;
|
|
if (derInteger2 != 0)
|
|
{
|
|
}
|
|
array[2] = derInteger2;
|
|
DerSequence derSequence = new DerSequence(array);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x04008070 RID: 32880
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4008070")]
|
|
private readonly DerPrintableString currency;
|
|
|
|
// Token: 0x04008071 RID: 32881
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4008071")]
|
|
private readonly DerInteger amount;
|
|
|
|
// Token: 0x04008072 RID: 32882
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4008072")]
|
|
private readonly DerInteger exponent;
|
|
}
|
|
}
|