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

◆ GetForwardedTypes()

override Type[] System.Reflection.RuntimeAssembly.GetForwardedTypes ( )
inlinesealedvirtualinherited

Reimplemented from System.Reflection.Assembly.

Definition at line 548 of file RuntimeAssembly.cs.

549 {
550 List<Type> list = new List<Type>();
552 GetManifestModule(GetNativeHandle()).MetadataImport.Enum(MetadataTokenType.ExportedType, 0, out var result);
555 for (int i = 0; i < result.Length; i++)
556 {
557 MetadataToken mdtExternalType = result[i];
558 Type o = null;
559 Exception item = null;
561 try
562 {
564 if (o == null)
565 {
566 continue;
567 }
568 }
569 catch (Exception ex)
570 {
571 o = null;
572 item = ex;
573 }
574 if (o != null)
575 {
576 list.Add(o);
578 }
579 else
580 {
581 list2.Add(item);
582 }
583 }
584 if (list2.Count != 0)
585 {
586 int count = list.Count;
587 int count2 = list2.Count;
588 list.AddRange(new Type[count2]);
589 list2.InsertRange(0, new Exception[count]);
590 throw new ReflectionTypeLoadException(list.ToArray(), list2.ToArray());
591 }
592 return list.ToArray();
593 }
void Add(TKey key, TValue value)
static void AddPublicNestedTypes(Type type, List< Type > types, List< Exception > exceptions)
static void GetForwardedType(QCallAssembly assembly, MetadataToken mdtExternalType, ObjectHandleOnStack type)
static RuntimeModule GetManifestModule(RuntimeAssembly assembly)

References System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.Reflection.RuntimeAssembly.AddPublicNestedTypes(), System.count, System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Runtime.Serialization.Dictionary, System.Reflection.RuntimeAssembly.GetForwardedType(), System.Reflection.RuntimeAssembly.GetManifestModule(), System.Reflection.RuntimeAssembly.GetNativeHandle(), System.item, System.list, and System.type.