-
Notifications
You must be signed in to change notification settings - Fork 0
ReflectionHelper
Qkrisi edited this page Feb 21, 2021
·
6 revisions
This class contains methods that help you find a specific type. (Origin: Mod Selector)
public static Type FindType(string fullName, string assemblyName = null);Declaring type: -
Gets the type with the specified name. If a non-null assemblyName is given, the type will be searched in the given assembly.
public static IEnumerable<Type> GetSafeTypes(this Assembly assembly);Declaring type: -
(System.Reflection.Assembly extension)
Gets all the types in the given assembly, handling ReflectionTypeLoadException.
If any other exceptions occur, the returned value will be an empty enumerable.