Click or drag to resize

Common Methods

The Common type exposes the following members.

Methods
  Name Description
Public method Static member Code example CreateArrayT(Int32) Creates a strongly-typed Array.
Public method Static member Code example CreateArrayT(Int32, T) Creates a strongly-typed Array with an initial value parameter.
Public method Static member GetApplicationType Gets the type of the currently executing application.
Public method Static member GetAvailablePhysicalMemory Gets the available physical system memory.
Public method Static member GetOSPlatformID Gets the operating system PlatformID
Public method Static member GetOSProductName Gets the operating system product name.
Public method Static member GetProcessMemory Gets the memory usage by the current process.
Public method Static member GetTotalPhysicalMemory Gets the total physical system memory.
Public method Static member IIfT Returns one of two strongly-typed objects.
Public method Static member IsDefaultValue Determines if given item is equal to its default value (e.g., null or 0.0).
Public method Static member IsNonStringReference Determines if given item is a reference type but not a string.
Public method Static member IsNumeric Determines if given item is or can be interpreted as numeric.
Public method Static member IsNumericType(Object) Determines if Type of item is a numeric type, i.e., item is IConvertible and has a TypeCode that is one of: Boolean, SByte, Byte, Int16, UInt16, Int32, UInt32, Int64, UInt64Single, Double or Decimal.
Public method Static member IsNumericType(Type) Determines if type is a numeric type, i.e., has a TypeCode that is one of: Boolean, SByte, Byte, Int16, UInt16, Int32, UInt32, Int64, UInt64Single, Double or Decimal.
Public method Static member IsNumericType(TypeCode) Determines if typeCode is a numeric type, i.e., one of: Boolean, SByte, Byte, Int16, UInt16, Int32, UInt32, Int64, UInt64Single, Double or Decimal.
Public method Static member IsNumericTypeT Determines if T is a numeric type, i.e., has a TypeCode that is one of: Boolean, SByte, Byte, Int16, UInt16, Int32, UInt32, Int64, UInt64Single, Double or Decimal.
Public method Static member IsReference Determines if given item is a reference type.
Public method Static member MaxT Returns the largest item from a list of parameters.
Public method Static member MidT Returns the value that is neither the largest nor the smallest.
Public method Static member MinT Returns the smallest item from a list of parameters.
Public method Static member NotNull Returns value if not null; otherwise nonNullValue.
Public Extension Method ToNonNullNorEmptyStringT Converts value to string; null objects, DBNull objects or empty strings will return specified nonNullNorEmptyValue.
Public Extension Method ToNonNullNorWhiteSpaceT Converts value to string; null objects, DBNull objects, empty strings or all white space strings will return specified nonNullNorWhiteSpaceValue.
Public Extension Method ToNonNullString(String) Makes sure returned string value is not null; if this string is null, empty string ("") will be returned.
Public Extension Method ToNonNullStringT(T) Converts value to string; null objects (or DBNull objects) will return an empty string ("").
Public Extension Method ToNonNullStringT(T, String) Converts value to string; null objects (or DBNull objects) will return specified nonNullValue.
Public method Static member TypeConvertFromString(String, Type) Converts this string into the specified type.
Public method Static member TypeConvertFromString(String, Type, CultureInfo) Converts this string into the specified type.
Public method Static member TypeConvertToString(Object) Converts value to a String using an appropriate TypeConverter.
Public method Static member TypeConvertToString(Object, CultureInfo) Converts value to a String using an appropriate TypeConverter.
Top
See Also