ClassTypeExtensions
Class
Extension methods for working with types
Definition
Namespace:Telerik.DataSource.Extensions
Assembly:Telerik.DataSource.dll
Syntax:
cs-api-definition
public static class TypeExtensions
Inheritance: objectTypeExtensions
Methods
DefaultValue(Type)
Returns the default value of the given type
GetNonNullableType(Type)
Returns the non-nullable type for the type that is passed.
GetTypeName(Type)
Returns the name of the type as a string
IsCompatibleWith(Type, Type)
Returns true if the source can be assigned to the target
IsDynamicObject(Type)
Returns true if the object is dynamic
IsEnumType(Type)
Returns true if the type is an enumeration
IsGenericType(Type)
Returns true if the type is generic
IsInterface(Type)
Returns true if the type is an interface
IsNullableType(Type)
Returns true if the type is nullable
IsNumericType(Type)
Returns true if the type is a number type
IsPlainType(Type)
Returns true if the object is plain (that is, not dynamic)
IsPredefinedType(Type)
Returns true if the type is one of the standard .NET types
IsValueType(Type)
Returns true if the type is a Value type