We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f576cf commit 8e1fa20Copy full SHA for 8e1fa20
src/runtime/interop.cs
@@ -89,7 +89,6 @@ static TypeOffset()
89
internal static class ManagedDataOffsets
90
{
91
public static int Magic { get; private set; }
92
- public static readonly Dictionary<string, int> NameMapping = new Dictionary<string, int>();
93
94
static class DataOffsets
95
@@ -108,11 +107,6 @@ static DataOffsets()
108
107
109
static ManagedDataOffsets()
110
111
- Type type = typeof(TypeOffset);
112
- foreach (FieldInfo fi in type.GetFields())
113
- {
114
- NameMapping[fi.Name] = (int)fi.GetValue(null);
115
- }
116
Magic = TypeOffset.members;
117
FieldInfo[] fields = typeof(DataOffsets).GetFields(BindingFlags.Static | BindingFlags.Public);
118
size = fields.Length * IntPtr.Size;
0 commit comments