C# Класс _3PA.Lib.Reflector

This class is from the Front-End for Dosbox and is used to present a 'vista' dialog box to select folders. Being able to use a vista style dialog box to select folders is much better then using the shell folder browser. http://code.google.com/p/fed/ Example: var r = new Reflector("System.Windows.Forms");
Показать файл Открыть проект

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

Метод Описание
Call ( object obj, string func ) : object

Calls method 'func' on object 'obj' passing parameters 'parameters'

Call2 ( object obj, string func, object parameters ) : object

Calls method 'func' on object 'obj' passing parameters 'parameters'

CallAs ( Type type, object obj, string func ) : object

Calls method 'func' on object 'obj' which is of type 'type' passing parameters 'parameters'

CallAs2 ( Type type, object obj, string func, object parameters ) : object

Calls method 'func' on object 'obj' which is of type 'type' passing parameters 'parameters'

Get ( object obj, string prop ) : object

Returns the value of property 'prop' of object 'obj'

GetAs ( Type type, object obj, string prop ) : object

Returns the value of property 'prop' of object 'obj' which has type 'type'

GetEnum ( string typeName, string name ) : object

Returns an enum value

GetType ( string typeName ) : Type

Return a Type instance for a type 'typeName'

New ( string name ) : object

Create a new object of a named type passing along any params

Reflector ( string ns ) : System

Constructor

Reflector ( string an, string ns ) : System

Constructor

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

Call() публичный Метод

Calls method 'func' on object 'obj' passing parameters 'parameters'
public Call ( object obj, string func ) : object
obj object The object on which to excute function 'func'
func string The function to execute
Результат object

Call2() публичный Метод

Calls method 'func' on object 'obj' passing parameters 'parameters'
public Call2 ( object obj, string func, object parameters ) : object
obj object The object on which to excute function 'func'
func string The function to execute
parameters object The parameters to pass to function 'func'
Результат object

CallAs() публичный Метод

Calls method 'func' on object 'obj' which is of type 'type' passing parameters 'parameters'
public CallAs ( Type type, object obj, string func ) : object
type System.Type The type of 'obj'
obj object The object on which to excute function 'func'
func string The function to execute
Результат object

CallAs2() публичный Метод

Calls method 'func' on object 'obj' which is of type 'type' passing parameters 'parameters'
public CallAs2 ( Type type, object obj, string func, object parameters ) : object
type System.Type The type of 'obj'
obj object The object on which to excute function 'func'
func string The function to execute
parameters object The parameters to pass to function 'func'
Результат object

Get() публичный Метод

Returns the value of property 'prop' of object 'obj'
public Get ( object obj, string prop ) : object
obj object The object containing 'prop'
prop string The property name
Результат object

GetAs() публичный Метод

Returns the value of property 'prop' of object 'obj' which has type 'type'
public GetAs ( Type type, object obj, string prop ) : object
type System.Type The type of 'obj'
obj object The object containing 'prop'
prop string The property name
Результат object

GetEnum() публичный Метод

Returns an enum value
public GetEnum ( string typeName, string name ) : object
typeName string The name of enum type
name string The name of the value
Результат object

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

Return a Type instance for a type 'typeName'
public GetType ( string typeName ) : Type
typeName string The name of the type
Результат System.Type

New() публичный Метод

Create a new object of a named type passing along any params
public New ( string name ) : object
name string The name of the type to create
Результат object

Reflector() публичный Метод

Constructor
public Reflector ( string ns ) : System
ns string The namespace containing types to be used
Результат System

Reflector() публичный Метод

Constructor
public Reflector ( string an, string ns ) : System
an string A specific assembly name (used if the assembly name does not tie exactly with the namespace)
ns string The namespace containing types to be used
Результат System