C# Class IrcShark.Extensions.ExtensionInfoBuilder

Creates ExtensionInfo objects for a given dll file.
Searches all types in an assembly. If the type inherits from Extension, an ExtensionInfo for this type is created. This class is used as a communication class between the ExtensionAnalyzer and the inner AppDomain.
Inheritance: System.MarshalByRefObject
显示文件 Open project: hapm/IrcShark

Public Methods

Method Description
ExtensionInfoBuilder ( string fileName ) : System

Initializes a new instance of the ExtensionInfoBuilder class for the given assembly.

Private Methods

Method Description
CompareAssemblys ( AssemblyName asm1, AssemblyName asm2 ) : bool

Compares to AssemblyNames to check if they a re the same.

This is a quick and dirty solution, as the method only compares the textual name. Need to find a better method here!

ReflectionOnlyTypeFromAssembly ( Assembly asm, Type type ) : Type

Gets the reflection only type instance of a given type.

To be able to check for superclasses of a given reflection only loaded type, you need to use the reflection only class type of the superclass. This method gets the reflection only type for a given normal type instance.

Method Details

ExtensionInfoBuilder() public method

Initializes a new instance of the ExtensionInfoBuilder class for the given assembly.
public ExtensionInfoBuilder ( string fileName ) : System
fileName string The file name and path to the assembly to check.
return System