Class TypeExtension
Inheritance
TypeExtension
Assembly: Syncfusion.OfficeChart.NET.dll
Syntax
public static class TypeExtension
Properties
UnderlyingSystemType
Declaration
public static Type UnderlyingSystemType { get; }
Property Value
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 |
| Type |
type |
Represents the property type.
|
| Type[] |
types |
An array of Type objects representing the number, order, and type of the parameters for the desired constructor.
|
Returns
| Type |
Description |
| ConstructorInfo |
An object representing the public instance constructor whose parameters match the types in the parameter type array, if found; otherwise, null.
|
GetCustomAttributes(PropertyInfo, bool)
Declaration
public static object[] GetCustomAttributes(this PropertyInfo property, bool inherit)
Parameters
Returns
GetCustomAttributes(Type, Type, bool)
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 |
| Type |
type |
Type of the Property
|
| Type |
attributeType |
Type of the attribute to search for.
|
| bool |
inherit |
True to inspect the ancestor of that member otherwise false.
|
Returns
GetInterface(Type, string, bool)
Declaration
public static Type GetInterface(this Type type, string interfaceName, bool ignoreCase)
Parameters
Returns
GetProperties(Type)
Declaration
public static PropertyInfo[] GetProperties(this Type type)
Parameters
| Type |
Name |
Description |
| Type |
type |
|
Returns
GetProperty(Type, string)
Declaration
public static PropertyInfo GetProperty(this Type type, string propertyName)
Parameters
| Type |
Name |
Description |
| Type |
type |
|
| string |
propertyName |
|
Returns
IsSubclassOf(Type, Type)
Declaration
public static bool IsSubclassOf(this Type type, Type parentType)
Parameters
| Type |
Name |
Description |
| Type |
type |
|
| Type |
parentType |
|
Returns