C# Class ImageProcessor.Common.Extensions.AssemblyExtensions

Encapsulates a series of time saving extension methods to the T:System.Reflection.Assembly class.
Show file Open project: JimBobSquarePants/ImageProcessor

Public Methods

Method Description
GetAssemblyFile ( this assembly ) : FileInfo

Returns the FileInfo identifying the file used to load the assembly

GetLoadableTypes ( this assembly ) : IEnumerable

Gets a collection of loadable types from the given assembly. Adapted from

GetResourceAsString ( this assembly, string resource, Encoding encoding = null ) : string

Converts an assembly resource into a string.

Method Details

GetAssemblyFile() public static method

Returns the FileInfo identifying the file used to load the assembly
public static GetAssemblyFile ( this assembly ) : FileInfo
assembly this /// The to get the name from. ///
return System.IO.FileInfo

GetLoadableTypes() public static method

Gets a collection of loadable types from the given assembly. Adapted from
public static GetLoadableTypes ( this assembly ) : IEnumerable
assembly this /// The to load the types from. ///
return IEnumerable

GetResourceAsString() public static method

Converts an assembly resource into a string.
public static GetResourceAsString ( this assembly, string resource, Encoding encoding = null ) : string
assembly this /// The to load the strings from. ///
resource string /// The resource. ///
encoding System.Text.Encoding /// The character encoding to return the resource in. ///
return string