148 lines
6.2 KiB
C#
148 lines
6.2 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.Qualified
|
|
{
|
|
// Token: 0x0200185D RID: 6237
|
|
[Token(Token = "0x200185D")]
|
|
[StructLayout(3)]
|
|
public class Iso4217CurrencyCode : Asn1Encodable, IAsn1Choice
|
|
{
|
|
// Token: 0x0600A84D RID: 43085 RVA: 0x00273A40 File Offset: 0x00271C40
|
|
[Token(Token = "0x600A84D")]
|
|
[Address(RVA = "0x2B08A50", Offset = "0x2B07450", VA = "0x182B08A50")]
|
|
public static Iso4217CurrencyCode GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600A84D)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.Qualified.Iso4217CurrencyCode BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.Qualified.Iso4217CurrencyCode::GetInstance(System.Object)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_78:
|
|
stloc:string(var_10_7E, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
|
stloc:ArgumentException(var_11_96, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in GetInstance: "), ldloc:string(var_10_7E)), 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: 0x0600A84E RID: 43086 RVA: 0x00273AE4 File Offset: 0x00271CE4
|
|
[Token(Token = "0x600A84E")]
|
|
[Address(RVA = "0x2B08EE0", Offset = "0x2B078E0", VA = "0x182B08EE0")]
|
|
public Iso4217CurrencyCode(int numeric)
|
|
{
|
|
if (numeric - 1 <= 998)
|
|
{
|
|
DerInteger derInteger = new DerInteger(numeric);
|
|
this.obj = derInteger;
|
|
return;
|
|
}
|
|
object[] array = new object[5];
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600A84F RID: 43087 RVA: 0x00273B80 File Offset: 0x00271D80
|
|
[Token(Token = "0x600A84F")]
|
|
[Address(RVA = "0x2B090A0", Offset = "0x2B07AA0", VA = "0x182B090A0")]
|
|
public Iso4217CurrencyCode(string alphabetic)
|
|
{
|
|
DerPrintableString derPrintableString = new DerPrintableString(alphabetic);
|
|
this.obj = derPrintableString;
|
|
}
|
|
|
|
// Token: 0x17001A6A RID: 6762
|
|
// (get) Token: 0x0600A850 RID: 43088 RVA: 0x00273BA8 File Offset: 0x00271DA8
|
|
[Token(Token = "0x17001A6A")]
|
|
public bool IsAlphabetic
|
|
{
|
|
[Token(Token = "0x600A850")]
|
|
[Address(RVA = "0x2B09250", Offset = "0x2B07C50", VA = "0x182B09250")]
|
|
get
|
|
{
|
|
Asn1Encodable asn1Encodable = this.obj;
|
|
if (asn1Encodable == 0)
|
|
{
|
|
return 0 != 0;
|
|
}
|
|
return asn1Encodable != 0;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001A6B RID: 6763
|
|
// (get) Token: 0x0600A851 RID: 43089 RVA: 0x00273BD4 File Offset: 0x00271DD4
|
|
[Token(Token = "0x17001A6B")]
|
|
public string Alphabetic
|
|
{
|
|
[Token(Token = "0x600A851")]
|
|
[Address(RVA = "0x2B09180", Offset = "0x2B07B80", VA = "0x182B09180")]
|
|
get
|
|
{
|
|
Asn1Encodable asn1Encodable;
|
|
do
|
|
{
|
|
asn1Encodable = this.obj;
|
|
}
|
|
while (asn1Encodable == 0 || asn1Encodable == 0);
|
|
Asn1Object asn1Object = asn1Encodable.ToAsn1Object();
|
|
throw new NullReferenceException();
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001A6C RID: 6764
|
|
// (get) Token: 0x0600A852 RID: 43090 RVA: 0x00273C00 File Offset: 0x00271E00
|
|
[Token(Token = "0x17001A6C")]
|
|
public int Numeric
|
|
{
|
|
[Token(Token = "0x600A852")]
|
|
[Address(RVA = "0x2B092D0", Offset = "0x2B07CD0", VA = "0x182B092D0")]
|
|
get
|
|
{
|
|
Asn1Encodable asn1Encodable;
|
|
do
|
|
{
|
|
asn1Encodable = this.obj;
|
|
}
|
|
while (asn1Encodable == 0 || asn1Encodable == 0);
|
|
BigInteger bigInteger;
|
|
return bigInteger.IntValue;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600A853 RID: 43091 RVA: 0x00273C2C File Offset: 0x00271E2C
|
|
[Token(Token = "0x600A853")]
|
|
[Address(RVA = "0x52D760", Offset = "0x52C160", VA = "0x18052D760", Slot = "5")]
|
|
public override Asn1Object ToAsn1Object()
|
|
{
|
|
return this.obj.ToAsn1Object();
|
|
}
|
|
|
|
// Token: 0x04006D88 RID: 28040
|
|
[Token(Token = "0x4006D88")]
|
|
internal const int AlphabeticMaxSize = 3;
|
|
|
|
// Token: 0x04006D89 RID: 28041
|
|
[Token(Token = "0x4006D89")]
|
|
internal const int NumericMinSize = 1;
|
|
|
|
// Token: 0x04006D8A RID: 28042
|
|
[Token(Token = "0x4006D8A")]
|
|
internal const int NumericMaxSize = 999;
|
|
|
|
// Token: 0x04006D8B RID: 28043
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4006D8B")]
|
|
internal Asn1Encodable obj;
|
|
}
|
|
}
|