Class TypeExtensions
Inheritance
System.Object
TypeExtensions
Assembly: Eco.Core.dll
Syntax
public static class TypeExtensions : Object
Methods
GetBaseAbstractType(Type)
Declaration
public static Type GetBaseAbstractType(this Type type)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
Returns
Type |
Description |
System.Type |
|
GetBaseGenericType(Type, Type, Type)
Declaration
public static Type GetBaseGenericType(this Type type, Type genericTypeDefinition, Type rootType = null)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
System.Type |
genericTypeDefinition |
|
System.Type |
rootType |
|
Returns
Type |
Description |
System.Type |
|
GetNonGenericBaseType(Type)
Declaration
public static Type GetNonGenericBaseType(this Type type)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
Returns
Type |
Description |
System.Type |
|
GetPrettyName(Type)
Declaration
public static string GetPrettyName(this Type type)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
Returns
Type |
Description |
System.String |
|
GetStaticPropertyValue<T>(Type, String)
Declaration
public static T GetStaticPropertyValue<T>(this Type t, string funcName)
Parameters
Type |
Name |
Description |
System.Type |
t |
|
System.String |
funcName |
|
Returns
Type Parameters
InvokeStaticFunction<T>(Type, String, Object[])
Declaration
public static T InvokeStaticFunction<T>(this Type t, string funcName, params object[] paramList)
Parameters
Type |
Name |
Description |
System.Type |
t |
|
System.String |
funcName |
|
System.Object[] |
paramList |
|
Returns
Type Parameters