Class TypeExtension
Inheritance
System.Object
TypeExtension
Assembly: Syncfusion.XlsIO.UWP.dll
Syntax
public static class TypeExtension : Object
Methods
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
GetFields(Type, BindingFlags)
Declaration
public static FieldInfo[] GetFields(this Type type, BindingFlags flags)
Parameters
Returns
Type |
System.Reflection.FieldInfo[] |
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
GetProperties(Type)
Declaration
public static PropertyInfo[] GetProperties(this Type type)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
Returns
Type |
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 |
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