Method | Description | |
---|---|---|
CallMethod ( object obj, System info ) : object |
Uses reflection to dynamically invoke a method, throwing an exception if it is not implemented on the target object.
|
|
CallMethod ( object obj, string method ) : object |
Uses reflection to dynamically invoke a method, throwing an exception if it is not implemented on the target object.
|
|
CallMethodIfImplemented ( object obj, string method ) : object |
Uses reflection to dynamically invoke a method if that method is implemented on the target object.
|
|
CallPropertyGetter ( object obj, string property ) : object |
Invokes a property getter using dynamic method invocation.
|
|
CallPropertySetter ( object obj, string property, object value ) : void |
Invokes a property setter using dynamic method invocation.
|
|
CreateGenericInstance ( |
Creates an instance of a generic type using its default constructor.
|
|
CreateInstance ( |
Uses reflection to create an object using its default constructor.
|
|
FindMethod ( |
Returns information about the specified method, even if the parameter types are generic and are located in an abstract generic base class.
|
|
FindMethod ( |
Returns information about the specified method, finding the method based purely on the method name and number of parameters.
|
|
GetMethod ( |
Uses reflection to locate a matching method on the target object.
|
|
GetType ( string typeName ) : |
Gets a Type object based on the type name.
|
|
GetType ( string typeName, bool throwOnError ) : |
Gets a Type object based on the type name.
|
|
GetType ( string typeName, bool throwOnError, bool ignoreCase ) : |
Gets a Type object based on the type name.
|
|
IsMethodImplemented ( object obj, string method ) : bool |
Detects if a method matching the name and parameters is implemented on the provided object.
|
Method | Description | |
---|---|---|
CallMethod ( object obj, Csla.Reflection.DynamicMethodHandle methodHandle, bool hasParameters ) : object | ||
CallMethod ( object obj, System info, bool hasParameters ) : object | ||
CallMethod ( object obj, string method, bool hasParameters ) : object | ||
CallMethodIfImplemented ( object obj, string method, bool hasParameters ) : object | ||
FindMethodUsingFuzzyMatching ( |
||
GetCachedConstructor ( |
||
GetCachedField ( |
||
GetCachedMethod ( object obj, System info ) : Csla.Reflection.DynamicMethodHandle | ||
GetCachedMethod ( object obj, string method ) : Csla.Reflection.DynamicMethodHandle | ||
GetCachedMethod ( object obj, string method, bool hasParameters ) : Csla.Reflection.DynamicMethodHandle | ||
GetCachedProperty ( |
||
GetExtrasArray ( int count, |
||
GetMethod ( |
public static CallMethod ( object obj, System info ) : object | ||
obj | object | /// Object containing method. /// |
info | System | /// System.Reflection.MethodInfo for the method. /// |
return | object |
public static CallMethod ( object obj, string method ) : object | ||
obj | object | /// Object containing method. /// |
method | string | /// Name of the method. /// |
return | object |
public static CallMethodIfImplemented ( object obj, string method ) : object | ||
obj | object | /// Object containing method. /// |
method | string | /// Name of the method. /// |
return | object |
public static CallPropertyGetter ( object obj, string property ) : object | ||
obj | object | Target object. |
property | string | Property to invoke. |
return | object |
public static CallPropertySetter ( object obj, string property, object value ) : void | ||
obj | object | Target object. |
property | string | Property to invoke. |
value | object | New value for property. |
return | void |
public static CreateGenericInstance ( |
||
type | Generic type to create | |
return | object |
public static CreateInstance ( |
||
objectType | Type of object to create. | |
return | object |
public static FindMethod ( |
||
objectType | /// Type of object containing method. /// | |
method | string | /// Name of the method. /// |
types | /// Parameter types to pass to method. /// | |
return |
public static FindMethod ( |
||
objectType | /// Type of object containing method. /// | |
method | string | /// Name of the method. /// |
parameterCount | int | /// Number of parameters to pass to method. /// |
return |
public static GetMethod ( |
||
objectType | /// Type of object containing method. /// | |
method | string | /// Name of the method. /// |
return |
public static GetType ( string typeName ) : |
||
typeName | string | Type name including assembly name. |
return |
public static GetType ( string typeName, bool throwOnError ) : |
||
typeName | string | Type name including assembly name. |
throwOnError | bool | true to throw an exception if the type can't be found. |
return |
public static GetType ( string typeName, bool throwOnError, bool ignoreCase ) : |
||
typeName | string | Type name including assembly name. |
throwOnError | bool | true to throw an exception if the type can't be found. |
ignoreCase | bool | true for a case-insensitive comparison of the type name. |
return |
public static IsMethodImplemented ( object obj, string method ) : bool | ||
obj | object | The object implementing the method. |
method | string | The name of the method to find. |
return | bool |