All C# extension methods for type type
-
DeepClone
It returns deep copy of the object.
-
IsSubclassOfRawGeneric
Is essentially a modified version of Type.IsSubClassOf that supports checking whether a class derives from a generic base-class without specifying the type parameters. For instance, it supports typeof(List<>) to see if a class derives from the List<T> class. The actual code was borrowed from http://stackoverflow.com/questions/457676/c-reflection-check-if-a-class-is-derived-from-a-generic-class.
-
IsString
Checks whether the type is string.
-
GetAttribute
Makes it easier to retrieve custom attributes of a given type from a reflected type.
-
Between
c# version of "Between" clause of sql query
-
GetPropertyValue
Gets the value of a property in a object through relection
-
EnumToDictionary
Converts an Enumeration type into a dictionary of its names and values.
-
IsNullable
Returns true if the type it is called upon is a System.Nullable<> wrapped type.
-
IsBoolean
Checks whether the type is Boolean.
-
GetDisplayName()
Converts the pascal-cased Name property of a type to a displayable name.
-
In
C# version of In clause of sql query.
-
IsNumeric
Returns true if the type can be considered numeric
-
IsInteger
Checks whether the type is integer.
-
IsDateTime
Checks whether the type is DateTime.
-
IsNull
This method returns true if the value is null otherwise it returns false
-
IsDerived
Checks whether the type is derived from specified type or implemented of specified interface.
-
IsNotNull
This method returns true if the value if not null otherwise it returns false.
-
IsStatic
Determines if a type is static by checking if it's abstract, sealed, and has no public constructors.
-
FindCommonAncestor
Finds the nearest common ancestor for type based on the inheritance hierarchy.