public static void Setup() { // Get AssemblyListTable and Assembly count uint *assemblyListTable = Intrinsic.GetAssemblyListTable(); uint assemblyCount = assemblyListTable[0]; Assemblies = new LinkedList <RuntimeAssembly>(); // Loop through and populate the array for (uint i = 0; i < assemblyCount; i++) { // Get the pointer to the Assembly Metadata uint *ptr = (uint *)(assemblyListTable[1 + i]); Assemblies.AddLast(new RuntimeAssembly(ptr)); } }
public static void Setup() { Assemblies = new LinkedList <RuntimeAssembly>(); // Get AssemblyListTable and Assembly count var assemblyListTable = Intrinsic.GetAssemblyListTable(); uint assemblyCount = Intrinsic.Load32(assemblyListTable); // Loop through and populate the array for (int i = 0; i < assemblyCount; i++) { // Get the pointer to the Assembly Metadata var ptr = Intrinsic.LoadPointer(assemblyListTable, IntPtr.Size + (IntPtr.Size * i)); Assemblies.AddLast(new RuntimeAssembly(ptr)); } }
public static void Setup() { // Get AssemblyListTable and Assembly count Ptr assemblyListTable = Intrinsic.GetAssemblyListTable(); uint assemblyCount = (uint)assemblyListTable.Dereference(0); assemblyListTable.Increment(); Assemblies = new LinkedList <RuntimeAssembly>(); // Loop through and populate the array for (uint i = 0; i < assemblyCount; i++) { // Get the pointer to the Assembly Metadata MDAssemblyDefinition *ptr = (MDAssemblyDefinition *)(assemblyListTable.Dereference(i)); Assemblies.AddLast(new RuntimeAssembly(ptr)); } }