using System; using System.Globalization; using Cpp2IlInjected; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms { // Token: 0x02001F42 RID: 8002 [Token(Token = "0x2001F42")] public class Time : Asn1Encodable, IAsn1Choice { // Token: 0x0600CA71 RID: 51825 RVA: 0x002E5EA0 File Offset: 0x002E40A0 [Token(Token = "0x600CA71")] [Address(RVA = "0x2AEA1F0", Offset = "0x2AE8FF0", VA = "0x182AEA1F0")] public static Time GetInstance(Asn1TaggedObject obj, bool explicitly) { return Time.GetInstance(obj.GetObject()); } // Token: 0x0600CA72 RID: 51826 RVA: 0x002E5EC0 File Offset: 0x002E40C0 [Token(Token = "0x600CA72")] [Address(RVA = "0x2AEA360", Offset = "0x2AE9160", VA = "0x182AEA360")] public Time(Asn1Object time) { /* An exception occurred when decompiling this method (0600CA72) ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.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: 0x0600CA73 RID: 51827 RVA: 0x002E5F00 File Offset: 0x002E4100 [Token(Token = "0x600CA73")] [Address(RVA = "0x2AEA220", Offset = "0x2AE9020", VA = "0x182AEA220")] 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: 0x0600CA74 RID: 51828 RVA: 0x002E5F78 File Offset: 0x002E4178 [Token(Token = "0x600CA74")] [Address(RVA = "0x2AE9F60", Offset = "0x2AE8D60", VA = "0x182AE9F60")] public static Time GetInstance(object obj) { /* An exception occurred when decompiling this method (0600CA74) ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.Time BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.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: 0x1700200B RID: 8203 // (get) Token: 0x0600CA75 RID: 51829 RVA: 0x002E5FD8 File Offset: 0x002E41D8 [Token(Token = "0x1700200B")] public string TimeString { [Token(Token = "0x600CA75")] [Address(RVA = "0x2AEA6C0", Offset = "0x2AE94C0", VA = "0x182AEA6C0")] get { Asn1Object asn1Object; do { asn1Object = this.time; } while ((asn1Object != 0 && asn1Object != 0 && (asn1Object == 0 || asn1Object == 0)) || asn1Object == 0 || asn1Object == 0); string text; return text; } } // Token: 0x1700200C RID: 8204 // (get) Token: 0x0600CA76 RID: 51830 RVA: 0x002E6018 File Offset: 0x002E4218 [Token(Token = "0x1700200C")] public DateTime Date { [Token(Token = "0x600CA76")] [Address(RVA = "0x2AEA490", Offset = "0x2AE9290", VA = "0x182AEA490")] get { 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: 0x0600CA77 RID: 51831 RVA: 0x002E6070 File Offset: 0x002E4270 [Token(Token = "0x600CA77")] [Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "5")] public override Asn1Object ToAsn1Object() { return this.time; } // Token: 0x040080E2 RID: 32994 [FieldOffset(Offset = "0x10")] [Token(Token = "0x40080E2")] private readonly Asn1Object time; } }