C# Класс nHydrate.Generator.Common.Util.ReflectionHelper

Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
LoadAllAssembliesForPath ( string path ) : ArrayList
ReflectionHelper ( ) : System

Описание методов

CreateInstance() публичный статический Метод

public static CreateInstance ( System type, Object args ) : Object
type System
args Object
Результат Object

CreateInstance() публичный статический Метод

public static CreateInstance ( Type type ) : Object
type System.Type
Результат Object

CreateInstance() публичный статический Метод

public static CreateInstance ( string assemblyName, string type ) : Object
assemblyName string
type string
Результат Object

DisplayObjectTypes() публичный статический Метод

public static DisplayObjectTypes ( object o ) : void
o object
Результат void

DisplayProperties() публичный статический Метод

public static DisplayProperties ( object o ) : void
o object
Результат void

GetAttributes() публичный статический Метод

public static GetAttributes ( System attributeType, object instance ) : System.Attribute[]
attributeType System
instance object
Результат System.Attribute[]

GetCreatableObjectImplementsInterface() публичный статический Метод

public static GetCreatableObjectImplementsInterface ( Type interfaceType, Assembly assembly ) : System.Type[]
interfaceType System.Type
assembly System.Reflection.Assembly
Результат System.Type[]

GetCreatableObjectImplementsInterface() публичный статический Метод

public static GetCreatableObjectImplementsInterface ( Type interfaceType, string path ) : System.Type[]
interfaceType System.Type
path string
Результат System.Type[]

GetCreatableObjectImplementsInterface() публичный статический Метод

public static GetCreatableObjectImplementsInterface ( Type interfaceType, string path, AppDomain domain ) : System.Type[]
interfaceType System.Type
path string
domain System.AppDomain
Результат System.Type[]

GetCreatableObjects() публичный статический Метод

public static GetCreatableObjects ( System parentType, string path ) : System.Type[]
parentType System
path string
Результат System.Type[]

GetExcludeAssemblies() публичный статический Метод

public static GetExcludeAssemblies ( ) : IEnumerable
Результат IEnumerable

GetFieldsByAttribute() публичный статический Метод

public static GetFieldsByAttribute ( object o, System attributeType ) : Hashtable
o object
attributeType System
Результат System.Collections.Hashtable

GetMethodsByAttribute() публичный статический Метод

public static GetMethodsByAttribute ( System parentType, System attributeType ) : Hashtable
parentType System
attributeType System
Результат System.Collections.Hashtable

GetPropertyAttribute() публичный статический Метод

public static GetPropertyAttribute ( System attributeType, object instance, string propertyName ) : Attribute
attributeType System
instance object
propertyName string
Результат System.Attribute

GetPropertyAttributeDescriptionValue() публичный статический Метод

public static GetPropertyAttributeDescriptionValue ( object instance, string propertyName ) : string
instance object
propertyName string
Результат string

GetSingleAttribute() публичный статический Метод

public static GetSingleAttribute ( System attributeType, System type ) : Attribute
attributeType System
type System
Результат System.Attribute

GetSingleAttribute() публичный статический Метод

public static GetSingleAttribute ( System attributeType, object instance ) : Attribute
attributeType System
instance object
Результат System.Attribute

GetType() публичный статический Метод

public static GetType ( string assemblyName, string type ) : Type
assemblyName string
type string
Результат System.Type

ImplementsInterface() публичный статический Метод

public static ImplementsInterface ( Type objectType, Type interfaceType ) : bool
objectType System.Type
interfaceType System.Type
Результат bool

ImplementsInterface() публичный статический Метод

public static ImplementsInterface ( object o, Type interfaceType ) : bool
o object
interfaceType System.Type
Результат bool

IsTypeOf() публичный статический Метод

public static IsTypeOf ( System checkType, System baseType ) : bool
checkType System
baseType System
Результат bool

IsTypeOf() публичный статический Метод

public static IsTypeOf ( System checkType, string baseType ) : bool
checkType System
baseType string
Результат bool