ReflectionUtilities.

ReflectionUtilities.Assemblies Class

Summary

A variety of utility methods relating to the currently loaded assemblies and iterating through them.
Assembly
Weaver.dll
Namespace
Weaver
Base Types
  • Object
graph BT Type-->Base0["Object"] Type["ReflectionUtilities.Assemblies"] class Type type-node

Syntax

[SecurityCritical]
public static class ReflectionUtilities.Assemblies

Attributes

Type Description
SecurityCriticalAttribute

Fields

Name Constant Value Summary
All
A list of all currently loaded assemblies. Do not modify.
static
UnityCSharpRuntime
[Editor-Only] A reference to the assembly in which Unity compiles your runtime scripts.
static

Methods

Name Value Summary
FindType(string, bool, bool) Type
Tries to find a type with the specified name in any currently loaded assembly.
static
ForEachDependantAssembly(Assembly, Action<Assembly>) void
Calls the specified method once for each loaded assembly that references the specified assembly (including itself).
static
ForEachType(Assembly, Action<Type>) void
Calls the specified method once for each type in the specified assembly.
static
ForEachTypeInDependantAssemblies(Action<Type>) void
Calls the specified `method` once for each type in each loaded assembly that references the assembly in which the `method` is declared.
static
ForEachTypeInDependantAssemblies(Assembly, Action<Type>) void
Calls the specified `method` once for each type in each loaded assembly that references the specified `assembly`.
static
GetTypes(Assembly) Type[]
Returns an array of all types in the specified assembly. The array is cached to avoid garbage collection.
static
LogAllDependants() void
Logs all currently loaded assemblies and any others which are dependant on them.
static