using System; using System.Globalization; using Cpp2IlInjected; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509 { // Token: 0x02001F04 RID: 7940 [Token(Token = "0x2001F04")] public class Time : Asn1Encodable, IAsn1Choice { // Token: 0x0600C729 RID: 50985 RVA: 0x002D05A4 File Offset: 0x002CE7A4 [Token(Token = "0x600C729")] [Address(RVA = "0x2E89FF0", Offset = "0x2E88FF0", VA = "0x182E89FF0")] public static Time GetInstance(Asn1TaggedObject obj, bool explicitly) { return Time.GetInstance(obj.GetObject()); } // Token: 0x0600C72A RID: 50986 RVA: 0x002D05C4 File Offset: 0x002CE7C4 [Token(Token = "0x600C72A")] [Address(RVA = "0x2E8A690", Offset = "0x2E89690", VA = "0x182E8A690")] public Time(Asn1Object time) { /* An exception occurred when decompiling this method (0600C72A) ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.Time::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object) ---> System.Exception: Basic block has to end with unconditional control flow. { IL_29: stloc:ArgumentException(var_3_33, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("unknown object passed to Time"))) } 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: 0x0600C72B RID: 50987 RVA: 0x002D0604 File Offset: 0x002CE804 [Token(Token = "0x600C72B")] [Address(RVA = "0x2E8A7C0", Offset = "0x2E897C0", VA = "0x182E8A7C0")] public Time(DateTime date) { CultureInfo invariantCulture = CultureInfo.InvariantCulture; string text2; string text = text2 + "Z"; int num = 0; int num2 = int.Parse(text.Substring(num, 4)); num2 += -1950; if (num2 <= 99) { DerUtcTime derUtcTime = new DerUtcTime(text.Substring(2)); this.time = derUtcTime; return; } DerGeneralizedTime derGeneralizedTime = new DerGeneralizedTime(text); this.time = derGeneralizedTime; } // Token: 0x0600C72C RID: 50988 RVA: 0x002D067C File Offset: 0x002CE87C [Token(Token = "0x600C72C")] [Address(RVA = "0x2E8A020", Offset = "0x2E89020", VA = "0x182E8A020")] public static Time GetInstance(object obj) { /* An exception occurred when decompiling this method (0600C72C) ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.Time BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.Time::GetInstance(System.Object) ---> System.Exception: Basic block has to end with unconditional control flow. { IL_34: stloc:string(var_8_3A, call:string(Platform::GetTypeName, ldloc:object(obj))) stloc:ArgumentException(var_9_52, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_8_3A)), 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: 0x0600C72D RID: 50989 RVA: 0x002D06DC File Offset: 0x002CE8DC [Token(Token = "0x600C72D")] [Address(RVA = "0x2E8A2B0", Offset = "0x2E892B0", VA = "0x182E8A2B0")] public string GetTime() { Asn1Object asn1Object; do { asn1Object = this.time; } while ((asn1Object != 0 && asn1Object != 0 && (asn1Object == 0 || asn1Object == 0)) || asn1Object == 0 || asn1Object == 0); string text; return text; } // Token: 0x0600C72E RID: 50990 RVA: 0x002D071C File Offset: 0x002CE91C [Token(Token = "0x600C72E")] [Address(RVA = "0x2E8A450", Offset = "0x2E89450", VA = "0x182E8A450")] public DateTime ToDateTime() { Asn1Object asn1Object = this.time; if (asn1Object != 0 && asn1Object != 0 && (asn1Object == 0 || asn1Object == 0)) { throw new NullReferenceException(); } if (asn1Object != 0 && asn1Object != 0) { DateTime dateTime; return dateTime; } throw new NullReferenceException(); } // Token: 0x0600C72F RID: 50991 RVA: 0x002D0774 File Offset: 0x002CE974 [Token(Token = "0x600C72F")] [Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "5")] public override Asn1Object ToAsn1Object() { return this.time; } // Token: 0x0600C730 RID: 50992 RVA: 0x002D0788 File Offset: 0x002CE988 [Token(Token = "0x600C730")] [Address(RVA = "0x2E8A680", Offset = "0x2E89680", VA = "0x182E8A680", Slot = "3")] public override string ToString() { return this.GetTime(); } // Token: 0x04007CD0 RID: 31952 [FieldOffset(Offset = "0x10")] [Token(Token = "0x4007CD0")] private readonly Asn1Object time; } }