146 lines
6.1 KiB
C#
146 lines
6.1 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections
|
|
{
|
|
// Token: 0x02001380 RID: 4992
|
|
[Token(Token = "0x2001380")]
|
|
[StructLayout(3)]
|
|
internal class LinkedDictionaryEnumerator : IDictionaryEnumerator, IEnumerator
|
|
{
|
|
// Token: 0x06007E4B RID: 32331 RVA: 0x001A7C98 File Offset: 0x001A5E98
|
|
[Token(Token = "0x6007E4B")]
|
|
[Address(RVA = "0x9905F0", Offset = "0x98EFF0", VA = "0x1809905F0")]
|
|
internal LinkedDictionaryEnumerator(LinkedDictionary parent)
|
|
{
|
|
this.parent = parent;
|
|
}
|
|
|
|
// Token: 0x1700148C RID: 5260
|
|
// (get) Token: 0x06007E4C RID: 32332 RVA: 0x001A7CC4 File Offset: 0x001A5EC4
|
|
[Token(Token = "0x1700148C")]
|
|
public virtual object Current
|
|
{
|
|
[Token(Token = "0x6007E4C")]
|
|
[Address(RVA = "0x1C60BB0", Offset = "0x1C5F5B0", VA = "0x181C60BB0", Slot = "10")]
|
|
get
|
|
{
|
|
object obj;
|
|
return obj;
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700148D RID: 5261
|
|
// (get) Token: 0x06007E4D RID: 32333 RVA: 0x001A7CD4 File Offset: 0x001A5ED4
|
|
[Token(Token = "0x1700148D")]
|
|
public virtual DictionaryEntry Entry
|
|
{
|
|
[Token(Token = "0x6007E4D")]
|
|
[Address(RVA = "0x1C60C10", Offset = "0x1C5F610", VA = "0x181C60C10", Slot = "11")]
|
|
get
|
|
{
|
|
throw new NullReferenceException();
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700148E RID: 5262
|
|
// (get) Token: 0x06007E4E RID: 32334 RVA: 0x001A7CEC File Offset: 0x001A5EEC
|
|
[Token(Token = "0x1700148E")]
|
|
public virtual object Key
|
|
{
|
|
[Token(Token = "0x6007E4E")]
|
|
[Address(RVA = "0x1C60CB0", Offset = "0x1C5F6B0", VA = "0x181C60CB0", Slot = "12")]
|
|
get
|
|
{
|
|
return this.CurrentKey;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06007E4F RID: 32335 RVA: 0x001A7D00 File Offset: 0x001A5F00
|
|
[Token(Token = "0x6007E4F")]
|
|
[Address(RVA = "0x1C60A50", Offset = "0x1C5F450", VA = "0x181C60A50", Slot = "13")]
|
|
public virtual bool MoveNext()
|
|
{
|
|
LinkedDictionary linkedDictionary = this.parent;
|
|
int num = this.pos;
|
|
IList keys = linkedDictionary.keys;
|
|
if (num < linkedDictionary)
|
|
{
|
|
int num2 = this.pos;
|
|
LinkedDictionary linkedDictionary2 = this.parent;
|
|
num2++;
|
|
this.pos = num2;
|
|
IList keys2 = linkedDictionary2.keys;
|
|
return num2 < linkedDictionary2;
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06007E50 RID: 32336 RVA: 0x001A7D58 File Offset: 0x001A5F58
|
|
[Token(Token = "0x6007E50")]
|
|
[Address(RVA = "0x9905E0", Offset = "0x98EFE0", VA = "0x1809905E0", Slot = "14")]
|
|
public virtual void Reset()
|
|
{
|
|
this.pos = (int)((ulong)4294967295L);
|
|
}
|
|
|
|
// Token: 0x1700148F RID: 5263
|
|
// (get) Token: 0x06007E51 RID: 32337 RVA: 0x001A7D78 File Offset: 0x001A5F78
|
|
[Token(Token = "0x1700148F")]
|
|
public virtual object Value
|
|
{
|
|
[Token(Token = "0x6007E51")]
|
|
[Address(RVA = "0x1C60CC0", Offset = "0x1C5F6C0", VA = "0x181C60CC0", Slot = "15")]
|
|
get
|
|
{
|
|
IDictionary hash = this.parent.hash;
|
|
object currentKey = this.CurrentKey;
|
|
throw new NullReferenceException();
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001490 RID: 5264
|
|
// (get) Token: 0x06007E52 RID: 32338 RVA: 0x001A7DA0 File Offset: 0x001A5FA0
|
|
[Token(Token = "0x17001490")]
|
|
private object CurrentKey
|
|
{
|
|
[Token(Token = "0x6007E52")]
|
|
[Address(RVA = "0x1C60AF0", Offset = "0x1C5F4F0", VA = "0x181C60AF0")]
|
|
get
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06007E52)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Object BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.LinkedDictionaryEnumerator::get_CurrentKey()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_25:
|
|
stloc:InvalidOperationException(var_4_2A, newobj:InvalidOperationException(InvalidOperationException::.ctor))
|
|
}
|
|
|
|
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: 0x04005A53 RID: 23123
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4005A53")]
|
|
private readonly LinkedDictionary parent;
|
|
|
|
// Token: 0x04005A54 RID: 23124
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4005A54")]
|
|
private int pos = (int)((ulong)4294967295L);
|
|
}
|
|
}
|