TypeCodeHelper Class
Namespace: PTS
Assembly: PTSframework.dll
Static helper class with various TypeCode
extension methods consumed by the framework.
Syntax
public static class TypeCodeHelper
Inheritance
System.Object
TypeCodeHelper
Methods
IsIntegral(TypeCode)
Checks wether given typecode is of integer value type.
Declaration
public static bool IsIntegral(this TypeCode typeCode)
Parameters
Type | Name | Description |
---|---|---|
System.TypeCode | typeCode | TypeCode to perform the test for. |
Returns
Type | Description |
---|---|
System.Boolean | If the type code is for integer type then |
IsNumeric(TypeCode)
Checks wether given typecode is of numeric value type.
Declaration
public static bool IsNumeric(this TypeCode typeCode)
Parameters
Type | Name | Description |
---|---|---|
System.TypeCode | typeCode | TypeCode to perform the test for. |
Returns
Type | Description |
---|---|
System.Boolean | If the type code is for numeric type then |
IsText(TypeCode)
Checks wether given TypeCode
is of string or char type.
Declaration
public static bool IsText(this TypeCode typeCode)
Parameters
Type | Name | Description |
---|---|---|
System.TypeCode | typeCode | The typecode to inspect. |
Returns
Type | Description |
---|---|
System.Boolean | If the |
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()