Table of Contents

Class ValueConverter

Namespace
Shift.Common
Assembly
Shift.Common.dll
public static class ValueConverter
Inheritance
ValueConverter
Inherited Members

Fields

DecimalNotApplicable

public const readonly decimal DecimalNotApplicable = -79228162514264337593543950333

Field Value

decimal

DecimalNotAvailable

public const readonly decimal DecimalNotAvailable = -79228162514264337593543950334

Field Value

decimal

DecimalNotKnown

public const readonly decimal DecimalNotKnown = -79228162514264337593543950335

Field Value

decimal

DefaultCulture

public static readonly CultureInfo DefaultCulture

Field Value

CultureInfo

DoubleNotApplicable

public const double DoubleNotApplicable = -1.7976931348623157E+308

Field Value

double

DoubleNotAvailable

public const double DoubleNotAvailable = -1.7976931348623157E+308

Field Value

double

DoubleNotKnown

public const double DoubleNotKnown = -1.7976931348623157E+308

Field Value

double

Int32NotApplicable

public const int Int32NotApplicable = -2147483646

Field Value

int

Int32NotAvailable

public const int Int32NotAvailable = -2147483647

Field Value

int

Int32NotKnown

public const int Int32NotKnown = -2147483648

Field Value

int

Int64NotApplicable

public const long Int64NotApplicable = -9223372036854775806

Field Value

long

Int64NotAvailable

public const long Int64NotAvailable = -9223372036854775807

Field Value

long

Int64NotKnown

public const long Int64NotKnown = -9223372036854775808

Field Value

long

NapInt32

public const int NapInt32 = -2147483646

Field Value

int

NavInt32

public const int NavInt32 = -2147483647

Field Value

int

NullInt32

public const int NullInt32 = -2147483648

Field Value

int

Properties

NullDate

public static DateTime NullDate { get; }

Property Value

DateTime

Methods

IsBoolean(string)

Returns true if it is possible to convert the text into a Boolean value (of type System.Boolean).

public static bool IsBoolean(string text)

Parameters

text string

Returns

bool

IsDecimal(string)

Returns true if it is possible to convert the text into a floating- point numeric value (of type System.Decimal).

public static bool IsDecimal(string text)

Parameters

text string

Returns

bool

IsDouble(string)

Returns true if it is possible to convert the text into a floating- point numeric value (of type System.Double).

public static bool IsDouble(string text)

Parameters

text string

Returns

bool

IsInt32(string)

Returns true if it is possible to convert the text into a 32-bit integer value (of type System.Int32).

public static bool IsInt32(string text)

Parameters

text string

Returns

bool

IsNotApplicable(object)

public static bool IsNotApplicable(object value)

Parameters

value object

Returns

bool

IsNotAvailable(object)

public static bool IsNotAvailable(object value)

Parameters

value object

Returns

bool

IsNotNull(DateTime)

public static bool IsNotNull(DateTime value)

Parameters

value DateTime

Returns

bool

IsNotNull(decimal)

public static bool IsNotNull(decimal value)

Parameters

value decimal

Returns

bool

IsNotNull(double)

public static bool IsNotNull(double value)

Parameters

value double

Returns

bool

IsNotNull(int)

public static bool IsNotNull(int value)

Parameters

value int

Returns

bool

IsNotNull(long)

public static bool IsNotNull(long value)

Parameters

value long

Returns

bool

IsNotNull(object)

public static bool IsNotNull(object value)

Parameters

value object

Returns

bool

IsNotNull(float)

public static bool IsNotNull(float value)

Parameters

value float

Returns

bool

IsNotNull(string)

public static bool IsNotNull(string value)

Parameters

value string

Returns

bool

IsNull(DateTime)

public static bool IsNull(DateTime value)

Parameters

value DateTime

Returns

bool

IsNull(decimal)

public static bool IsNull(decimal value)

Parameters

value decimal

Returns

bool

IsNull(double)

public static bool IsNull(double value)

Parameters

value double

Returns

bool

IsNull(Guid)

public static bool IsNull(Guid value)

Parameters

value Guid

Returns

bool

IsNull(int)

public static bool IsNull(int value)

Parameters

value int

Returns

bool

IsNull(long)

public static bool IsNull(long value)

Parameters

value long

Returns

bool

IsNull(object)

public static bool IsNull(object value)

Parameters

value object

Returns

bool

IsNull(string)

public static bool IsNull(string value)

Parameters

value string

Returns

bool

IsNumber<T>(string, T, T, T, out T)

public static bool IsNumber<T>(string value, T notKnown, T notAvailable, T notApplicable, out T result)

Parameters

value string
notKnown T
notAvailable T
notApplicable T
result T

Returns

bool

Type Parameters

T

IsOne(object)

public static bool IsOne(object value)

Parameters

value object

Returns

bool

IsZero(object)

public static bool IsZero(object value)

Parameters

value object

Returns

bool

StatusToString(bool?)

public static string StatusToString(bool? value)

Parameters

value bool?

Returns

string

ToBoolean(object)

public static bool ToBoolean(object value)

Parameters

value object

Returns

bool

ToBoolean(string)

public static bool ToBoolean(string value)

Parameters

value string

Returns

bool

ToBooleanNullable(string)

public static bool? ToBooleanNullable(string value)

Parameters

value string

Returns

bool?

ToChar(string)

public static char ToChar(string value)

Parameters

value string

Returns

char

ToCharNullable(string)

public static char? ToCharNullable(string value)

Parameters

value string

Returns

char?

ToDateTime(object)

public static DateTime ToDateTime(object input)

Parameters

input object

Returns

DateTime

ToDecimal(object)

public static decimal ToDecimal(object value)

Parameters

value object

Returns

decimal

ToDecimal(string)

public static decimal ToDecimal(string value)

Parameters

value string

Returns

decimal

ToDecimalNullable(string)

public static decimal? ToDecimalNullable(string value)

Parameters

value string

Returns

decimal?

ToDouble(object)

public static double ToDouble(object value)

Parameters

value object

Returns

double

ToDouble(string)

public static double ToDouble(string value)

Parameters

value string

Returns

double

ToDoubleNullable(string)

public static double? ToDoubleNullable(string value)

Parameters

value string

Returns

double?

ToGuidNullable(string)

public static Guid? ToGuidNullable(string value)

Parameters

value string

Returns

Guid?

ToInt32(char)

public static int ToInt32(char value)

Parameters

value char

Returns

int

ToInt32(object)

public static int ToInt32(object value)

Parameters

value object

Returns

int

ToInt32(string)

public static int ToInt32(string value)

Parameters

value string

Returns

int

ToInt32Nullable(string)

public static int? ToInt32Nullable(string value)

Parameters

value string

Returns

int?

ToInt64(object)

public static long ToInt64(object value)

Parameters

value object

Returns

long

ToInt64(string)

public static long ToInt64(string value)

Parameters

value string

Returns

long

ToInt64Nullable(string)

public static long? ToInt64Nullable(string value)

Parameters

value string

Returns

long?

ToString(bool)

public static string ToString(bool value)

Parameters

value bool

Returns

string

ToString(DateTime)

public static string ToString(DateTime value)

Parameters

value DateTime

Returns

string

ToString(DateTime, string)

public static string ToString(DateTime value, string valueFormat)

Parameters

value DateTime
valueFormat string

Returns

string

ToString(decimal)

public static string ToString(decimal value)

Parameters

value decimal

Returns

string

ToString(decimal, string)

public static string ToString(decimal value, string valueFormat)

Parameters

value decimal
valueFormat string

Returns

string

ToString(decimal, string, string, string, string)

public static string ToString(decimal value, string valueFormat, string valueFormatNull, string valueFormatZero, string valueFormatOne)

Parameters

value decimal
valueFormat string
valueFormatNull string
valueFormatZero string
valueFormatOne string

Returns

string

ToString(double)

public static string ToString(double value)

Parameters

value double

Returns

string

ToString(double, string)

public static string ToString(double value, string valueFormat)

Parameters

value double
valueFormat string

Returns

string

ToString(double, string, string, string, string)

public static string ToString(double value, string valueFormat, string valueFormatNull, string valueFormatZero, string valueFormatOne)

Parameters

value double
valueFormat string
valueFormatNull string
valueFormatZero string
valueFormatOne string

Returns

string

ToString(int)

public static string ToString(int value)

Parameters

value int

Returns

string

ToString(int, string)

public static string ToString(int value, string valueFormat)

Parameters

value int
valueFormat string

Returns

string

ToString(int, string, string, string, string)

public static string ToString(int value, string valueFormat, string valueFormatNull, string valueFormatZero, string valueFormatOne)

Parameters

value int
valueFormat string
valueFormatNull string
valueFormatZero string
valueFormatOne string

Returns

string

ToString(long)

public static string ToString(long value)

Parameters

value long

Returns

string

ToString(long, string)

public static string ToString(long value, string valueFormat)

Parameters

value long
valueFormat string

Returns

string

ToString(long, string, string, string, string)

public static string ToString(long value, string valueFormat, string valueFormatNull, string valueFormatZero, string valueFormatOne)

Parameters

value long
valueFormat string
valueFormatNull string
valueFormatZero string
valueFormatOne string

Returns

string

ToString(bool?)

public static string ToString(bool? value)

Parameters

value bool?

Returns

string

ToString(DateTime?)

public static string ToString(DateTime? value)

Parameters

value DateTime?

Returns

string

ToString(DateTime?, string)

public static string ToString(DateTime? value, string valueFormat)

Parameters

value DateTime?
valueFormat string

Returns

string

ToString(decimal?)

public static string ToString(decimal? value)

Parameters

value decimal?

Returns

string

ToString(decimal?, string)

public static string ToString(decimal? value, string valueFormat)

Parameters

value decimal?
valueFormat string

Returns

string

ToString(decimal?, string, string, string, string)

public static string ToString(decimal? value, string valueFormat, string valueFormatNull, string valueFormatZero, string valueFormatOne)

Parameters

value decimal?
valueFormat string
valueFormatNull string
valueFormatZero string
valueFormatOne string

Returns

string

ToString(double?)

public static string ToString(double? value)

Parameters

value double?

Returns

string

ToString(double?, string)

public static string ToString(double? value, string valueFormat)

Parameters

value double?
valueFormat string

Returns

string

ToString(double?, string, string, string, string)

public static string ToString(double? value, string valueFormat, string valueFormatNull, string valueFormatZero, string valueFormatOne)

Parameters

value double?
valueFormat string
valueFormatNull string
valueFormatZero string
valueFormatOne string

Returns

string

ToString(int?)

public static string ToString(int? value)

Parameters

value int?

Returns

string

ToString(int?, string)

public static string ToString(int? value, string valueFormat)

Parameters

value int?
valueFormat string

Returns

string

ToString(int?, string, string, string, string)

public static string ToString(int? value, string valueFormat, string valueFormatNull, string valueFormatZero, string valueFormatOne)

Parameters

value int?
valueFormat string
valueFormatNull string
valueFormatZero string
valueFormatOne string

Returns

string

ToString(long?)

public static string ToString(long? value)

Parameters

value long?

Returns

string

ToString(long?, string)

public static string ToString(long? value, string valueFormat)

Parameters

value long?
valueFormat string

Returns

string

ToString(long?, string, string, string, string)

public static string ToString(long? value, string valueFormat, string valueFormatNull, string valueFormatZero, string valueFormatOne)

Parameters

value long?
valueFormat string
valueFormatNull string
valueFormatZero string
valueFormatOne string

Returns

string

ToString(string, string, string)

public static string ToString(string value, string valueFormat, string valueFormatNull)

Parameters

value string
valueFormat string
valueFormatNull string

Returns

string