Class TypeExtension
Inheritance
System.Object
TypeExtension
Assembly: Syncfusion.OfficeChart.Portable.dll
Syntax
public static class TypeExtension : Object
Properties
UnderlyingSystemType
Declaration
public static Type UnderlyingSystemType { get; }
Property Value
Type |
Description |
System.Type |
|
Methods
GetConstructor(Type, Type[])
Searches for a public instance constructor whose parameters match the types in the specified array.
Declaration
public static ConstructorInfo GetConstructor(this Type type, Type[] types)
Parameters
Type |
Name |
Description |
System.Type |
type |
Represents the property type.
|
System.Type[] |
types |
An array of Type objects representing the number, order, and type of the parameters for the desired constructor.
|
Returns
Type |
Description |
System.Reflection.ConstructorInfo |
An object representing the public instance constructor whose parameters match the types in the parameter type array, if found; otherwise, null.
|
GetCustomAttributes(PropertyInfo, Boolean)
Declaration
public static object[] GetCustomAttributes(this PropertyInfo property, bool inherit)
Parameters
Type |
Name |
Description |
System.Reflection.PropertyInfo |
property |
|
System.Boolean |
inherit |
|
Returns
Type |
Description |
System.Object[] |
|
GetCustomAttributes(Type, Type, Boolean)
Retrieves the collection of custome attribute of the specified type that are applied
to a specific member, and optionally inspect the ancestors of that member.
Declaration
public static object[] GetCustomAttributes(this Type type, Type attributeType, bool inherit)
Parameters
Type |
Name |
Description |
System.Type |
type |
Type of the Property
|
System.Type |
attributeType |
Type of the attribute to search for.
|
System.Boolean |
inherit |
True to inspect the ancestor of that member otherwise false.
|
Returns
Type |
Description |
System.Object[] |
|
GetInterface(Type, String, Boolean)
Declaration
public static Type GetInterface(this Type type, string interfaceName, bool ignoreCase)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
System.String |
interfaceName |
|
System.Boolean |
ignoreCase |
|
Returns
Type |
Description |
System.Type |
|
GetProperties(Type)
Declaration
public static PropertyInfo[] GetProperties(this Type type)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
Returns
Type |
Description |
System.Reflection.PropertyInfo[] |
|
GetProperty(Type, String)
Declaration
public static PropertyInfo GetProperty(this Type type, string propertyName)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
System.String |
propertyName |
|
Returns
Type |
Description |
System.Reflection.PropertyInfo |
|
IsSubclassOf(Type, Type)
Declaration
public static bool IsSubclassOf(this Type type, Type parentType)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
System.Type |
parentType |
|
Returns
Type |
Description |
System.Boolean |
|