Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetTypes()

virtual Type[] System.Reflection.Assembly.GetTypes ( )
inlinevirtualinherited

Definition at line 237 of file Assembly.cs.

238 {
240 if (modules.Length == 1)
241 {
242 return modules[0].GetTypes();
243 }
244 int num = 0;
245 Type[][] array = new Type[modules.Length][];
246 for (int i = 0; i < array.Length; i++)
247 {
248 array[i] = modules[i].GetTypes();
249 num += array[i].Length;
250 }
251 int num2 = 0;
252 Type[] array2 = new Type[num];
253 for (int j = 0; j < array.Length; j++)
254 {
255 int num3 = array[j].Length;
256 Array.Copy(array[j], 0, array2, num2, num3);
257 num2 += num3;
258 }
259 return array2;
260 }

References System.array, System.Array.Copy(), System.Runtime.Serialization.Dictionary, and System.Reflection.Assembly.GetModules().

Referenced by System.Reflection.Metadata.RuntimeTypeMetadataUpdateHandler.ClearCache(), and System.Reflection.AssemblyExtensions.GetTypes().