C# Class nHydrate.Generator.Common.Util.ReflectionHelper

Mostra file Open project: nHydrate/nHydrate

Public Methods

Method Description
CreateInstance ( System type, Object args ) : Object
CreateInstance ( Type type ) : Object
CreateInstance ( string assemblyName, string type ) : Object
DisplayObjectTypes ( object o ) : void
DisplayProperties ( object o ) : void
GetAttributes ( System attributeType, object instance ) : System.Attribute[]
GetCreatableObjectImplementsInterface ( Type interfaceType, Assembly assembly ) : System.Type[]
GetCreatableObjectImplementsInterface ( Type interfaceType, string path ) : System.Type[]
GetCreatableObjectImplementsInterface ( Type interfaceType, string path, AppDomain domain ) : System.Type[]
GetCreatableObjects ( System parentType, string path ) : System.Type[]
GetExcludeAssemblies ( ) : IEnumerable
GetFieldsByAttribute ( object o, System attributeType ) : Hashtable
GetMethodsByAttribute ( System parentType, System attributeType ) : Hashtable
GetPropertyAttribute ( System attributeType, object instance, string propertyName ) : Attribute
GetPropertyAttributeDescriptionValue ( object instance, string propertyName ) : string
GetSingleAttribute ( System attributeType, System type ) : Attribute
GetSingleAttribute ( System attributeType, object instance ) : Attribute
GetType ( string assemblyName, string type ) : Type
ImplementsInterface ( Type objectType, Type interfaceType ) : bool
ImplementsInterface ( object o, Type interfaceType ) : bool
IsTypeOf ( System checkType, System baseType ) : bool
IsTypeOf ( System checkType, string baseType ) : bool

Private Methods

Method Description
LoadAllAssembliesForPath ( string path ) : ArrayList
ReflectionHelper ( ) : System

Method Details

CreateInstance() public static method

public static CreateInstance ( System type, Object args ) : Object
type System
args Object
return Object

CreateInstance() public static method

public static CreateInstance ( Type type ) : Object
type System.Type
return Object

CreateInstance() public static method

public static CreateInstance ( string assemblyName, string type ) : Object
assemblyName string
type string
return Object

DisplayObjectTypes() public static method

public static DisplayObjectTypes ( object o ) : void
o object
return void

DisplayProperties() public static method

public static DisplayProperties ( object o ) : void
o object
return void

GetAttributes() public static method

public static GetAttributes ( System attributeType, object instance ) : System.Attribute[]
attributeType System
instance object
return System.Attribute[]

GetCreatableObjectImplementsInterface() public static method

public static GetCreatableObjectImplementsInterface ( Type interfaceType, Assembly assembly ) : System.Type[]
interfaceType System.Type
assembly System.Reflection.Assembly
return System.Type[]

GetCreatableObjectImplementsInterface() public static method

public static GetCreatableObjectImplementsInterface ( Type interfaceType, string path ) : System.Type[]
interfaceType System.Type
path string
return System.Type[]

GetCreatableObjectImplementsInterface() public static method

public static GetCreatableObjectImplementsInterface ( Type interfaceType, string path, AppDomain domain ) : System.Type[]
interfaceType System.Type
path string
domain System.AppDomain
return System.Type[]

GetCreatableObjects() public static method

public static GetCreatableObjects ( System parentType, string path ) : System.Type[]
parentType System
path string
return System.Type[]

GetExcludeAssemblies() public static method

public static GetExcludeAssemblies ( ) : IEnumerable
return IEnumerable

GetFieldsByAttribute() public static method

public static GetFieldsByAttribute ( object o, System attributeType ) : Hashtable
o object
attributeType System
return System.Collections.Hashtable

GetMethodsByAttribute() public static method

public static GetMethodsByAttribute ( System parentType, System attributeType ) : Hashtable
parentType System
attributeType System
return System.Collections.Hashtable

GetPropertyAttribute() public static method

public static GetPropertyAttribute ( System attributeType, object instance, string propertyName ) : Attribute
attributeType System
instance object
propertyName string
return System.Attribute

GetPropertyAttributeDescriptionValue() public static method

public static GetPropertyAttributeDescriptionValue ( object instance, string propertyName ) : string
instance object
propertyName string
return string

GetSingleAttribute() public static method

public static GetSingleAttribute ( System attributeType, System type ) : Attribute
attributeType System
type System
return System.Attribute

GetSingleAttribute() public static method

public static GetSingleAttribute ( System attributeType, object instance ) : Attribute
attributeType System
instance object
return System.Attribute

GetType() public static method

public static GetType ( string assemblyName, string type ) : Type
assemblyName string
type string
return System.Type

ImplementsInterface() public static method

public static ImplementsInterface ( Type objectType, Type interfaceType ) : bool
objectType System.Type
interfaceType System.Type
return bool

ImplementsInterface() public static method

public static ImplementsInterface ( object o, Type interfaceType ) : bool
o object
interfaceType System.Type
return bool

IsTypeOf() public static method

public static IsTypeOf ( System checkType, System baseType ) : bool
checkType System
baseType System
return bool

IsTypeOf() public static method

public static IsTypeOf ( System checkType, string baseType ) : bool
checkType System
baseType string
return bool