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

◆ DefinedTypes

virtual IEnumerable<TypeInfo> System.Reflection.Assembly.DefinedTypes
getinherited

Definition at line 27 of file Assembly.cs.

28 {
29 [RequiresUnreferencedCode("Types might be removed")]
30 get
31 {
32 Type[] types = GetTypes();
33 TypeInfo[] array = new TypeInfo[types.Length];
34 for (int i = 0; i < types.Length; i++)
35 {
36 TypeInfo typeInfo = types[i].GetTypeInfo();
37 if (typeInfo == null)
38 {
39 throw new NotSupportedException(SR.Format(SR.NotSupported_NoTypeInfo, types[i].FullName));
40 }
41 array[i] = typeInfo;
42 }
43 return array;
44 }
45 }
virtual Type[] GetTypes()
Definition Assembly.cs:237