Property | Type | Description | |
---|---|---|---|
Get | |||
Get | |||
GetCastFromMethod | |||
GetCastToMethod | |||
LoadMembers | void |
Method | Description | |
---|---|---|
CanConvertTo ( |
Determines whether this instance can be converted to the specified type. Unlike the built in cast system, this returns true if a cast is possible AND if IConvertible can be used.
|
|
CloseType ( ) : |
Closes the type if it is generic and has generic parameters, or creates equivalent type.
|
|
DescendsFrom ( [ baseType ) : bool |
Checks to see if a type descends from another type.
|
|
ExtendedType ( [ type ) : System |
Initializes a new instance of the ExtendedType class.
|
|
FindType ( [ typeName, bool throwOnError = false, bool ignoreCase = false ) : |
Finds the type with the specified typeName. This is more robust than using Type.GetType(string,bool,bool) as it supports partial assembly names. |
|
GetConstructor ( ) : |
Gets the constructor.
|
|
GetConstructor ( [ constructorInfo, bool includeBase = true ) : |
Gets the Constructor matching the ConstructorInfo (if any).
|
|
GetConstructor ( bool includeBase ) : |
Gets the constructor.
|
|
GetConstructor ( bool &castsRequired, bool includeBase ) : |
Gets the constructor.
|
|
GetEvent ( [ name, bool includeBase = true ) : |
Gets the event.
|
|
GetField ( [ name, bool includeBase = true ) : Field |
Gets the field.
|
|
GetIndexer ( ) : |
Gets the indexer from the type (or base types).
|
|
GetIndexer ( [ propertyInfo, bool includeBase = true ) : |
Gets the Indexer matching the PropertyInfo (if any).
|
|
GetIndexer ( bool &castsRequired ) : |
Gets the indexer from the type (or base types).
|
|
GetIndexer ( bool includeBase, bool &castsRequired ) : |
Gets the indexer.
|
|
GetMethod ( [ name ) : |
Gets the method.
|
|
GetMethod ( [ methodInfo, bool includeBase = true ) : |
Gets the Method matching the MethodInfo (if any).
|
|
GetMethod ( [ name, int genericArguments ) : |
Gets the method.
|
|
GetMethod ( [ name, int genericArguments, bool includeBase ) : |
Gets the method.
|
|
GetMethod ( [ name, int genericArguments, bool allowClosure, bool allowCasts ) : |
Gets the method.
|
|
GetMethod ( [ name, int genericArguments, bool allowClosure, bool allowCasts, bool includeBase ) : |
Gets the method.
|
|
GetMethod ( [ name, int genericArguments, bool allowClosure, bool allowCasts, bool &castsRequired, bool includeBase ) : |
Gets the method.
|
|
GetMethods ( [ name, bool includeBase = true ) : IEnumerable |
Gets the methods.
|
|
GetProperty ( [ name, bool includeBase = true ) : System.Property |
Gets the property.
|
|
Implements ( [ interfaceType ) : bool |
Checks to see if this type implements a particular interface.
|
|
ImplementsCastFrom ( [ fromType, bool implicitOnly = true ) : bool |
Whether this type implements a cast from the specified type.
|
|
ImplementsCastTo ( [ toType, bool implicitOnly = true ) : bool |
Whether this type implements a cast to the specified type.
|
|
TryConvert ( [ expression, [ outputExpression ) : bool |
Converts the specified expression to the output type. This version is more powerful than the Expression.Convert CLR method in that it supports ToString() conversion, IConvertible and TypeConverters. It also prevents exceptions being thrown. |
Method | Description | |
---|---|---|
Get ( [ type ) : |
||
Get ( [ typeName, bool ignoreCase = false ) : |
||
GetCastFromMethod ( [ fromType ) : |
||
GetCastToMethod ( [ toType ) : |
||
LoadMembers ( ) : void |
Loads all the members in one go.
|
public CanConvertTo ( |
||
type | The type. | |
return | bool |
public DescendsFrom ( [ baseType ) : bool | ||
baseType | [ | Type of the base. |
return | bool |
public static FindType ( [ typeName, bool throwOnError = false, bool ignoreCase = false ) : |
||
typeName | [ | Name of the type. |
throwOnError | bool | Throws an error if |
ignoreCase | bool | Ignores the case if |
return |
public GetConstructor ( [ constructorInfo, bool includeBase = true ) : |
||
constructorInfo | [ | The constructor info. |
includeBase | bool | if set to |
return |
public GetConstructor ( bool includeBase ) : |
||
includeBase | bool | if set to |
return |
public GetConstructor ( bool &castsRequired, bool includeBase ) : |
||
castsRequired | bool | Any array indicating which parameters require a cast (the last element is for the return type). |
includeBase | bool | if set to |
return |
public GetEvent ( [ name, bool includeBase = true ) : |
||
name | [ | The name. |
includeBase | bool | if set to |
return |
public GetField ( [ name, bool includeBase = true ) : Field | ||
name | [ | The name. |
includeBase | bool | if set to |
return | Field |
public GetIndexer ( [ propertyInfo, bool includeBase = true ) : |
||
propertyInfo | [ | The property info. |
includeBase | bool | if set to |
return |
public GetIndexer ( bool &castsRequired ) : |
||
castsRequired | bool | Any array indicating which parameters require a cast (the last element is for the return type). |
return |
public GetIndexer ( bool includeBase, bool &castsRequired ) : |
||
includeBase | bool | if set to |
castsRequired | bool | Any array indicating which parameters require a cast (the last element is for the return type). |
return |
public GetMethod ( [ methodInfo, bool includeBase = true ) : |
||
methodInfo | [ | The method info. |
includeBase | bool | if set to |
return |
public GetMethod ( [ name, int genericArguments ) : |
||
name | [ | The name. |
genericArguments | int | The number of generic arguments. |
return |
public GetMethod ( [ name, int genericArguments, bool includeBase ) : |
||
name | [ | The name. |
genericArguments | int | The number of generic arguments. |
includeBase | bool | if set to |
return |
public GetMethod ( [ name, int genericArguments, bool allowClosure, bool allowCasts ) : |
||
name | [ | The name. |
genericArguments | int | The number of generic arguments. |
allowClosure | bool | if set to |
allowCasts | bool | if set to |
return |
public GetMethod ( [ name, int genericArguments, bool allowClosure, bool allowCasts, bool includeBase ) : |
||
name | [ | The name. |
genericArguments | int | The number of generic arguments. |
allowClosure | bool | if set to |
allowCasts | bool | if set to |
includeBase | bool | if set to |
return |
public GetMethod ( [ name, int genericArguments, bool allowClosure, bool allowCasts, bool &castsRequired, bool includeBase ) : |
||
name | [ | The name. |
genericArguments | int | The number of generic arguments. |
allowClosure | bool | if set to |
allowCasts | bool | if set to |
castsRequired | bool | Any array indicating which parameters require a cast (the last element is for the return type). |
includeBase | bool | if set to |
return |
public GetMethods ( [ name, bool includeBase = true ) : IEnumerable |
||
name | [ | The name. |
includeBase | bool | if set to |
return | IEnumerable |
public GetProperty ( [ name, bool includeBase = true ) : System.Property | ||
name | [ | The name. |
includeBase | bool | if set to |
return | System.Property |
public Implements ( [ interfaceType ) : bool | ||
interfaceType | [ | Type of the interface. |
return | bool |
public ImplementsCastFrom ( [ fromType, bool implicitOnly = true ) : bool | ||
fromType | [ | The type to cast from. |
implicitOnly | bool | If set to |
return | bool |
public ImplementsCastTo ( [ toType, bool implicitOnly = true ) : bool | ||
toType | [ | The type to cast to. |
implicitOnly | bool | If set to |
return | bool |
public TryConvert ( [ expression, [ outputExpression ) : bool | ||
expression | [ | The expression. |
outputExpression | [ | The output expression. |
return | bool |