Class ReflectionExtensions
Inheritance
Namespace: Syncfusion.Data.Extensions
Assembly: Syncfusion.Data.Portable.dll
Syntax
public static class ReflectionExtensions : Object
Methods
BaseType(Type)
Gets the type from which the current type
directly inherits.
Declaration
public static Type BaseType(this Type type)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | The type. |
Returns
Type | Description |
---|---|
System.Type | The |
GetCulture(CultureInfo)
Declaration
public static CultureInfo GetCulture(this CultureInfo cultureInfo)
Parameters
Type | Name | Description |
---|---|---|
System.Globalization.CultureInfo | cultureInfo |
Returns
Type |
---|
System.Globalization.CultureInfo |
GetIsDynamicBound(IEnumerable)
Gets the boolean value indicating whether the specified collection
is Dynamic Bound or Not.
Declaration
public static bool GetIsDynamicBound(this IEnumerable collection)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.IEnumerable | collection |
Returns
Type | Description |
---|---|
System.Boolean | True if the |
GetItemProperties(IEnumerable, out Boolean)
Gets the item properties for the specified dataSource
.
Declaration
public static PropertyDescriptorCollection GetItemProperties(this IEnumerable dataSource, out bool itemPropertiesSet)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.IEnumerable | dataSource | |
System.Boolean | itemPropertiesSet |
Returns
Type | Description |
---|---|
System.ComponentModel.PropertyDescriptorCollection | The item properties of the specified |
GetProperties(Type)
Declaration
public static IEnumerable<PropertyInfo> GetProperties(this Type type)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type |
Returns
Type |
---|
System.Collections.Generic.IEnumerable<System.Reflection.PropertyInfo> |
IsAbstract(Type)
Checks whether the specified type
is abstract or not.
Declaration
public static bool IsAbstract(this Type type)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | The type. |
Returns
Type | Description |
---|---|
System.Boolean | true if the specified |
IsAssignableFrom(Type, Type)
Declaration
public static bool IsAssignableFrom(this Type type, Type typeInfo)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | |
System.Type | typeInfo |
Returns
Type |
---|
System.Boolean |
IsEnum(Type)
Checks whether the specified type
represents an enumeration or not.
Declaration
public static bool IsEnum(this Type type)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | The type. |
Returns
Type | Description |
---|---|
System.Boolean | true if the specified |
IsGenericType(Type)
Checks Whether the specified type
is generic type or not.
Declaration
public static bool IsGenericType(this Type type)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | The type. |
Returns
Type | Description |
---|---|
System.Boolean | true if the specified |
IsGenericTypeDefinition(Type)
Checks whether the specifed type is generic type definition or not.
Declaration
public static bool IsGenericTypeDefinition(this Type type)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | The type. |
Returns
Type | Description |
---|---|
System.Boolean | true if the |
IsInterface(Type)
Checks whether the specified type
is an interface; that is, not a class or a value type.
Declaration
public static bool IsInterface(this Type type)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | The type. |
Returns
Type | Description |
---|---|
System.Boolean | true if the |
IsPrimitive(Type)
Checks whether the specified type
is one of the primitive types or not.
Declaration
public static bool IsPrimitive(this Type type)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | The type. |
Returns
Type | Description |
---|---|
System.Boolean | true if the |
IsValueType(Type)
Checks whether the specified type
is value type or not.
Declaration
public static bool IsValueType(this Type type)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | The type. |
Returns
Type | Description |
---|---|
System.Boolean | true if the specified |