146 lines
6.3 KiB
C#
146 lines
6.3 KiB
C#
using System;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.Qualified
|
|
{
|
|
// Token: 0x02001E3B RID: 7739
|
|
[Token(Token = "0x2001E3B")]
|
|
public class MonetaryValue : Asn1Encodable
|
|
{
|
|
// Token: 0x0600C42E RID: 50222 RVA: 0x002CC144 File Offset: 0x002CA344
|
|
[Token(Token = "0x600C42E")]
|
|
[Address(RVA = "0x2B38900", Offset = "0x2B37700", VA = "0x182B38900")]
|
|
public static MonetaryValue GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600C42E)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.Qualified.MonetaryValue BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.Qualified.MonetaryValue::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 GetInstance: "), 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: 0x0600C42F RID: 50223 RVA: 0x002CC1CC File Offset: 0x002CA3CC
|
|
[Token(Token = "0x600C42F")]
|
|
[Address(RVA = "0x2B38D40", Offset = "0x2B37B40", VA = "0x182B38D40")]
|
|
private MonetaryValue(Asn1Sequence seq)
|
|
{
|
|
Asn1SequenceParser parser = seq.Parser;
|
|
Iso4217CurrencyCode iso4217CurrencyCode;
|
|
this.currency = iso4217CurrencyCode;
|
|
Asn1SequenceParser parser2 = seq.Parser;
|
|
DerInteger derInteger;
|
|
this.amount = derInteger;
|
|
Asn1SequenceParser parser3 = seq.Parser;
|
|
DerInteger derInteger2;
|
|
this.exponent = derInteger2;
|
|
}
|
|
|
|
// Token: 0x0600C430 RID: 50224 RVA: 0x002CC214 File Offset: 0x002CA414
|
|
[Token(Token = "0x600C430")]
|
|
[Address(RVA = "0x2B38E90", Offset = "0x2B37C90", VA = "0x182B38E90")]
|
|
public MonetaryValue(Iso4217CurrencyCode currency, int amount, int exponent)
|
|
{
|
|
this.currency = currency;
|
|
DerInteger derInteger = new DerInteger(amount);
|
|
this.amount = derInteger;
|
|
DerInteger derInteger2 = new DerInteger(amount);
|
|
this.exponent = derInteger2;
|
|
}
|
|
|
|
// Token: 0x17001E6E RID: 7790
|
|
// (get) Token: 0x0600C431 RID: 50225 RVA: 0x002CC24C File Offset: 0x002CA44C
|
|
[Token(Token = "0x17001E6E")]
|
|
public Iso4217CurrencyCode Currency
|
|
{
|
|
[Token(Token = "0x600C431")]
|
|
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
|
get
|
|
{
|
|
return this.currency;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001E6F RID: 7791
|
|
// (get) Token: 0x0600C432 RID: 50226 RVA: 0x002CC260 File Offset: 0x002CA460
|
|
[Token(Token = "0x17001E6F")]
|
|
public BigInteger Amount
|
|
{
|
|
[Token(Token = "0x600C432")]
|
|
[Address(RVA = "0x283E1D0", Offset = "0x283CFD0", VA = "0x18283E1D0")]
|
|
get
|
|
{
|
|
return this.amount.Value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001E70 RID: 7792
|
|
// (get) Token: 0x0600C433 RID: 50227 RVA: 0x002CC280 File Offset: 0x002CA480
|
|
[Token(Token = "0x17001E70")]
|
|
public BigInteger Exponent
|
|
{
|
|
[Token(Token = "0x600C433")]
|
|
[Address(RVA = "0x283E1F0", Offset = "0x283CFF0", VA = "0x18283E1F0")]
|
|
get
|
|
{
|
|
return this.exponent.Value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600C434 RID: 50228 RVA: 0x002CC2A0 File Offset: 0x002CA4A0
|
|
[Token(Token = "0x600C434")]
|
|
[Address(RVA = "0x2B38BD0", Offset = "0x2B379D0", VA = "0x182B38BD0", Slot = "5")]
|
|
public override Asn1Object ToAsn1Object()
|
|
{
|
|
Asn1Encodable[] array = new Asn1Encodable[3];
|
|
Iso4217CurrencyCode iso4217CurrencyCode = this.currency;
|
|
if (iso4217CurrencyCode != 0)
|
|
{
|
|
}
|
|
array[0] = iso4217CurrencyCode;
|
|
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: 0x04007BCF RID: 31695
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4007BCF")]
|
|
internal Iso4217CurrencyCode currency;
|
|
|
|
// Token: 0x04007BD0 RID: 31696
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4007BD0")]
|
|
internal DerInteger amount;
|
|
|
|
// Token: 0x04007BD1 RID: 31697
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4007BD1")]
|
|
internal DerInteger exponent;
|
|
}
|
|
}
|