C# Class GSF.Reflection.AssemblyInfo

Represents a common information provider for an assembly.
Mostrar archivo Open project: GridProtectionAlliance/gsf Class Usage Examples

Public Methods

Method Description
AssemblyInfo ( Assembly assemblyInstance ) : System

Initializes a new instance of the AssemblyInfo class.

FindType ( string typeName ) : Type

Finds the specified typeName searching through all loaded assemblies.

GetAttributes ( ) : NameValueCollection

Gets a collection of assembly attributes exposed by the assembly.

GetCustomAttribute ( Type attributeType ) : CustomAttributeData

Gets the specified assembly attribute if it is exposed by the assembly.

This method always returns null under Mono deployments.

GetEmbeddedResource ( string resourceName ) : Stream

Gets the specified embedded resource from the assembly.

Private Methods

Method Description
LoadAssemblyFromResource ( string assemblyName ) : void
ResolveAssemblyFromResource ( object sender, ResolveEventArgs e ) : Assembly

Method Details

AssemblyInfo() public method

Initializes a new instance of the AssemblyInfo class.
public AssemblyInfo ( Assembly assemblyInstance ) : System
assemblyInstance System.Reflection.Assembly An object.
return System

FindType() public static method

Finds the specified typeName searching through all loaded assemblies.
public static FindType ( string typeName ) : Type
typeName string Fully qualified type name.
return System.Type

GetAttributes() public method

Gets a collection of assembly attributes exposed by the assembly.
public GetAttributes ( ) : NameValueCollection
return System.Collections.Specialized.NameValueCollection

GetCustomAttribute() public method

Gets the specified assembly attribute if it is exposed by the assembly.
This method always returns null under Mono deployments.
public GetCustomAttribute ( Type attributeType ) : CustomAttributeData
attributeType System.Type Type of the attribute to get.
return System.Reflection.CustomAttributeData

GetEmbeddedResource() public method

Gets the specified embedded resource from the assembly.
public GetEmbeddedResource ( string resourceName ) : Stream
resourceName string The full name (including the namespace) of the embedded resource to get.
return Stream