ProgramTypeUtility Class
Static members for type handling.
Namespace
Songhay
Base Types
  • object
graph BT Type-->Base0["object"] Type["ProgramTypeUtility"] class Type type-node

Syntax

public static class ProgramTypeUtility

Remarks

Most of the Parse methods were originally meant for unboxing values from XML documents.

Methods

Name Return Value Summary
ConvertDateTimeFromUnixTime(double) DateTime
Converts Unix time stamps to DateTime.
static
ConvertDateTimeToRfc3339DateTime(DateTime) string
Converts the specified DateTime to RFC3339.
static
ConvertDateTimeToRfc822DateTime(DateTime) string
/// Converts the specified DateTime to RFC822.
static
ConvertDateTimeToUnixTime() double
Converts the current time to a Unix time stamp.
static
ConvertDateTimeToUnixTime(DateTime) double
Converts a DateTime to a Unix time stamp.
static
ConvertDateTimeToUtc(DateTime) string
Converts a DateTime to UTC (ISO 8601).
static
ConvertInchesToPoints(float) float
Converts inches as a Single to points.
static
ConvertPointsToInches(float) float
Converts points as a Single to inches.
static
GenerateRandomPassword(int) string
Generates the random password.
static
IsNullOrEmptyOrNotArray(object) bool
Returns true when the specified value is an empty array, not an array or null.
static
IsNullOrEmptyString(object) bool
Returns true when the specified value is null or String.Empty.
static
ParseBoolean(object, bool, bool) bool?
Tries to convert the specified value to the Nullable return type.
static
ParseBoolean(object, bool) bool?
Tries to convert the specified value to the Nullable return type.
static
ParseBoolean(object) bool?
Tries to convert the specified value to the Nullable return type.
static
ParseByte(object, byte) byte?
Tries to convert the specified value to the Nullable return type.
static
ParseByte(object) byte?
Tries to convert the specified value to the Nullable return type.
static
ParseDateTime(object, DateTime) DateTime?
Tries to convert the specified value to the Nullable return type.
static
ParseDateTime(object) DateTime?
Tries to convert the specified value to the Nullable return type.
static
ParseDateTimeWithFormat(object, string, string) string
Tries to convert the specified value to the Nullable return type.
static
ParseDateTimeWithFormat(object, string) string
Tries to convert the specified value to the Nullable return type.
static
ParseDecimal(object, decimal) decimal?
Tries to convert the specified value to the Nullable return type.
static
ParseDecimal(object) decimal?
Tries to convert the specified value to the Nullable return type.
static
ParseDouble(object, double) double?
Tries to convert the specified value to the Nullable return type.
static
ParseDouble(object) double?
Tries to convert the specified value to the Nullable return type.
static
ParseEnum<TEnum>(string, TEnum) TEnum
Tries to convert the specified value to the Enum return type.
static
ParseInt16(object, Int16) Int16?
Tries to convert the specified value to the Nullable return type.
static
ParseInt16(object) Int16?
Tries to convert the specified value to the Nullable return type.
static
ParseInt32(object, Int32) Int32?
Tries to convert the specified value to the Nullable return type.
static
ParseInt32(object) Int32?
Tries to convert the specified value to the Nullable return type.
static
ParseInt64(object, Int64) Int64?
Tries to convert the specified value to the Nullable return type.
static
ParseInt64(object) Int64?
Tries to convert the specified value to the Nullable return type.
static
ParseRfc3339DateTime(string) DateTime
Parses the RFC3339 date and time.
static
ParseRfc822DateTime(string) DateTime
Parses the RFC822 date and time.
static
ParseString(object, string) string
Tries to convert the specified value to a String.
static
ParseString(object) string
Tries to convert the specified value to a String.
static
SqlDatabaseNull() DBNull
Returns the conventional database null (DBNull) for Microsoft SQL Server systems.
static
TryParseRfc3339DateTime(string, DateTime) bool
Tries the parse RFC3339 date and time.
static
TryParseRfc822DateTime(string, DateTime) bool
Tries the parse RFC822 date and time.
static