C# Class BatchGuy.App.ThirdParty.FolderSelectDialog.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");
Show file Open project: yaboy58/BatchGuy

Public Methods

Method Description
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

Method Details

Call() public method

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
return object

Call2() public method

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'
return object

CallAs() public method

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
return object

CallAs2() public method

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'
return object

Get() public method

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
return object

GetAs() public method

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
return object

GetEnum() public method

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
return object

GetType() public method

Return a Type instance for a type 'typeName'
public GetType ( string typeName ) : Type
typeName string The name of the type
return System.Type

New() public method

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
return object

Reflector() public method

Constructor
public Reflector ( string ns ) : System
ns string The namespace containing types to be used
return System

Reflector() public method

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
return System