Files
27Aug2021-Cpp2IL-Dump/Assembly-CSharp/BestHTTP/SecureProtocol/Org/BouncyCastle/Utilities/Collections/LinkedDictionaryEnumerator.cs
T
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

144 lines
5.9 KiB
C#

using System;
using System.Collections;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections
{
// Token: 0x02001A3D RID: 6717
[Token(Token = "0x2001A3D")]
internal class LinkedDictionaryEnumerator : IDictionaryEnumerator, IEnumerator
{
// Token: 0x06009DF3 RID: 40435 RVA: 0x00208364 File Offset: 0x00206564
[Token(Token = "0x6009DF3")]
[Address(RVA = "0x4EDE60", Offset = "0x4ECE60", VA = "0x1804EDE60")]
internal LinkedDictionaryEnumerator(LinkedDictionary parent)
{
this.parent = parent;
}
// Token: 0x1700192A RID: 6442
// (get) Token: 0x06009DF4 RID: 40436 RVA: 0x00208390 File Offset: 0x00206590
[Token(Token = "0x1700192A")]
public virtual object Current
{
[Token(Token = "0x6009DF4")]
[Address(RVA = "0x4EDF50", Offset = "0x4ECF50", VA = "0x1804EDF50", Slot = "10")]
get
{
object obj;
return obj;
}
}
// Token: 0x1700192B RID: 6443
// (get) Token: 0x06009DF5 RID: 40437 RVA: 0x002083A0 File Offset: 0x002065A0
[Token(Token = "0x1700192B")]
public virtual DictionaryEntry Entry
{
[Token(Token = "0x6009DF5")]
[Address(RVA = "0x4EDFB0", Offset = "0x4ECFB0", VA = "0x1804EDFB0", Slot = "11")]
get
{
throw new NullReferenceException();
}
}
// Token: 0x1700192C RID: 6444
// (get) Token: 0x06009DF6 RID: 40438 RVA: 0x002083B8 File Offset: 0x002065B8
[Token(Token = "0x1700192C")]
public virtual object Key
{
[Token(Token = "0x6009DF6")]
[Address(RVA = "0x4EE050", Offset = "0x4ED050", VA = "0x1804EE050", Slot = "12")]
get
{
return this.CurrentKey;
}
}
// Token: 0x06009DF7 RID: 40439 RVA: 0x002083CC File Offset: 0x002065CC
[Token(Token = "0x6009DF7")]
[Address(RVA = "0x4EDDB0", Offset = "0x4ECDB0", VA = "0x1804EDDB0", 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: 0x06009DF8 RID: 40440 RVA: 0x00208424 File Offset: 0x00206624
[Token(Token = "0x6009DF8")]
[Address(RVA = "0x4EDE50", Offset = "0x4ECE50", VA = "0x1804EDE50", Slot = "14")]
public virtual void Reset()
{
this.pos = (int)((ulong)4294967295L);
}
// Token: 0x1700192D RID: 6445
// (get) Token: 0x06009DF9 RID: 40441 RVA: 0x00208444 File Offset: 0x00206644
[Token(Token = "0x1700192D")]
public virtual object Value
{
[Token(Token = "0x6009DF9")]
[Address(RVA = "0x4EE060", Offset = "0x4ED060", VA = "0x1804EE060", Slot = "15")]
get
{
IDictionary hash = this.parent.hash;
object currentKey = this.CurrentKey;
throw new NullReferenceException();
}
}
// Token: 0x1700192E RID: 6446
// (get) Token: 0x06009DFA RID: 40442 RVA: 0x0020846C File Offset: 0x0020666C
[Token(Token = "0x1700192E")]
private object CurrentKey
{
[Token(Token = "0x6009DFA")]
[Address(RVA = "0x4EDE90", Offset = "0x4ECE90", VA = "0x1804EDE90")]
get
{
/*
An exception occurred when decompiling this method (06009DFA)
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: 0x04006A4F RID: 27215
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4006A4F")]
private readonly LinkedDictionary parent;
// Token: 0x04006A50 RID: 27216
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4006A50")]
private int pos = (int)((ulong)4294967295L);
}
}