PeanutButter
Loading...
Searching...
No Matches
PeanutButter.Utils.AssemblyExtensions Class Reference

Provides extension methods for Assemblies. More...

Static Public Member Functions

static Type FindTypeByName (this Assembly assembly, string typeName)
 Finds a Type by name within a given assembly. Returns null if the type cannot be found.
static IEnumerable< Assembly > WalkDependencies (this Assembly asm)
 Walks the assembly dependency tree.

Detailed Description

Provides extension methods for Assemblies.

Member Function Documentation

◆ FindTypeByName()

Type PeanutButter.Utils.AssemblyExtensions.FindTypeByName ( this Assembly assembly,
string typeName )
static

Finds a Type by name within a given assembly. Returns null if the type cannot be found.

Parameters
assemblyThe assembly to search
typeNameThe name of the Type to find
Returns
First type maching given name or null if no match found

◆ WalkDependencies()

IEnumerable< Assembly > PeanutButter.Utils.AssemblyExtensions.WalkDependencies ( this Assembly asm)
static

Walks the assembly dependency tree.

Parameters
asm
Returns

The documentation for this class was generated from the following file:
  • source/Utils/PeanutButter.Utils/AssemblyExtensions.cs