Class ValueConverter
public static class ValueConverter
- Inheritance
-
ValueConverter
- Inherited Members
Fields
DecimalNotApplicable
public const readonly decimal DecimalNotApplicable = -79228162514264337593543950333
Field Value
DecimalNotAvailable
public const readonly decimal DecimalNotAvailable = -79228162514264337593543950334
Field Value
DecimalNotKnown
public const readonly decimal DecimalNotKnown = -79228162514264337593543950335
Field Value
DefaultCulture
public static readonly CultureInfo DefaultCulture
Field Value
DoubleNotApplicable
public const double DoubleNotApplicable = -1.7976931348623157E+308
Field Value
DoubleNotAvailable
public const double DoubleNotAvailable = -1.7976931348623157E+308
Field Value
DoubleNotKnown
public const double DoubleNotKnown = -1.7976931348623157E+308
Field Value
Int32NotApplicable
public const int Int32NotApplicable = -2147483646
Field Value
Int32NotAvailable
public const int Int32NotAvailable = -2147483647
Field Value
Int32NotKnown
public const int Int32NotKnown = -2147483648
Field Value
Int64NotApplicable
public const long Int64NotApplicable = -9223372036854775806
Field Value
Int64NotAvailable
public const long Int64NotAvailable = -9223372036854775807
Field Value
Int64NotKnown
public const long Int64NotKnown = -9223372036854775808
Field Value
NapInt32
public const int NapInt32 = -2147483646
Field Value
NavInt32
public const int NavInt32 = -2147483647
Field Value
NullInt32
public const int NullInt32 = -2147483648
Field Value
Properties
NullDate
public static DateTime NullDate { get; }
Property Value
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
textstring
Returns
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
textstring
Returns
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
textstring
Returns
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
textstring
Returns
IsNotApplicable(object)
public static bool IsNotApplicable(object value)
Parameters
valueobject
Returns
IsNotAvailable(object)
public static bool IsNotAvailable(object value)
Parameters
valueobject
Returns
IsNotNull(DateTime)
public static bool IsNotNull(DateTime value)
Parameters
valueDateTime
Returns
IsNotNull(decimal)
public static bool IsNotNull(decimal value)
Parameters
valuedecimal
Returns
IsNotNull(double)
public static bool IsNotNull(double value)
Parameters
valuedouble
Returns
IsNotNull(int)
public static bool IsNotNull(int value)
Parameters
valueint
Returns
IsNotNull(long)
public static bool IsNotNull(long value)
Parameters
valuelong
Returns
IsNotNull(object)
public static bool IsNotNull(object value)
Parameters
valueobject
Returns
IsNotNull(float)
public static bool IsNotNull(float value)
Parameters
valuefloat
Returns
IsNotNull(string)
public static bool IsNotNull(string value)
Parameters
valuestring
Returns
IsNull(DateTime)
public static bool IsNull(DateTime value)
Parameters
valueDateTime
Returns
IsNull(decimal)
public static bool IsNull(decimal value)
Parameters
valuedecimal
Returns
IsNull(double)
public static bool IsNull(double value)
Parameters
valuedouble
Returns
IsNull(Guid)
public static bool IsNull(Guid value)
Parameters
valueGuid
Returns
IsNull(int)
public static bool IsNull(int value)
Parameters
valueint
Returns
IsNull(long)
public static bool IsNull(long value)
Parameters
valuelong
Returns
IsNull(object)
public static bool IsNull(object value)
Parameters
valueobject
Returns
IsNull(string)
public static bool IsNull(string value)
Parameters
valuestring
Returns
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
valuestringnotKnownTnotAvailableTnotApplicableTresultT
Returns
Type Parameters
T
IsOne(object)
public static bool IsOne(object value)
Parameters
valueobject
Returns
IsZero(object)
public static bool IsZero(object value)
Parameters
valueobject
Returns
StatusToString(bool?)
public static string StatusToString(bool? value)
Parameters
valuebool?
Returns
ToBoolean(object)
public static bool ToBoolean(object value)
Parameters
valueobject
Returns
ToBoolean(string)
public static bool ToBoolean(string value)
Parameters
valuestring
Returns
ToBooleanNullable(string)
public static bool? ToBooleanNullable(string value)
Parameters
valuestring
Returns
- bool?
ToChar(string)
public static char ToChar(string value)
Parameters
valuestring
Returns
ToCharNullable(string)
public static char? ToCharNullable(string value)
Parameters
valuestring
Returns
- char?
ToDateTime(object)
public static DateTime ToDateTime(object input)
Parameters
inputobject
Returns
ToDecimal(object)
public static decimal ToDecimal(object value)
Parameters
valueobject
Returns
ToDecimal(string)
public static decimal ToDecimal(string value)
Parameters
valuestring
Returns
ToDecimalNullable(string)
public static decimal? ToDecimalNullable(string value)
Parameters
valuestring
Returns
ToDouble(object)
public static double ToDouble(object value)
Parameters
valueobject
Returns
ToDouble(string)
public static double ToDouble(string value)
Parameters
valuestring
Returns
ToDoubleNullable(string)
public static double? ToDoubleNullable(string value)
Parameters
valuestring
Returns
ToGuidNullable(string)
public static Guid? ToGuidNullable(string value)
Parameters
valuestring
Returns
- Guid?
ToInt32(char)
public static int ToInt32(char value)
Parameters
valuechar
Returns
ToInt32(object)
public static int ToInt32(object value)
Parameters
valueobject
Returns
ToInt32(string)
public static int ToInt32(string value)
Parameters
valuestring
Returns
ToInt32Nullable(string)
public static int? ToInt32Nullable(string value)
Parameters
valuestring
Returns
- int?
ToInt64(object)
public static long ToInt64(object value)
Parameters
valueobject
Returns
ToInt64(string)
public static long ToInt64(string value)
Parameters
valuestring
Returns
ToInt64Nullable(string)
public static long? ToInt64Nullable(string value)
Parameters
valuestring
Returns
- long?
ToString(bool)
public static string ToString(bool value)
Parameters
valuebool
Returns
ToString(DateTime)
public static string ToString(DateTime value)
Parameters
valueDateTime
Returns
ToString(DateTime, string)
public static string ToString(DateTime value, string valueFormat)
Parameters
Returns
ToString(decimal)
public static string ToString(decimal value)
Parameters
valuedecimal
Returns
ToString(decimal, string)
public static string ToString(decimal value, string valueFormat)
Parameters
Returns
ToString(decimal, string, string, string, string)
public static string ToString(decimal value, string valueFormat, string valueFormatNull, string valueFormatZero, string valueFormatOne)
Parameters
valuedecimalvalueFormatstringvalueFormatNullstringvalueFormatZerostringvalueFormatOnestring
Returns
ToString(double)
public static string ToString(double value)
Parameters
valuedouble
Returns
ToString(double, string)
public static string ToString(double value, string valueFormat)
Parameters
Returns
ToString(double, string, string, string, string)
public static string ToString(double value, string valueFormat, string valueFormatNull, string valueFormatZero, string valueFormatOne)
Parameters
Returns
ToString(int)
public static string ToString(int value)
Parameters
valueint
Returns
ToString(int, string)
public static string ToString(int value, string valueFormat)
Parameters
Returns
ToString(int, string, string, string, string)
public static string ToString(int value, string valueFormat, string valueFormatNull, string valueFormatZero, string valueFormatOne)
Parameters
Returns
ToString(long)
public static string ToString(long value)
Parameters
valuelong
Returns
ToString(long, string)
public static string ToString(long value, string valueFormat)
Parameters
Returns
ToString(long, string, string, string, string)
public static string ToString(long value, string valueFormat, string valueFormatNull, string valueFormatZero, string valueFormatOne)
Parameters
Returns
ToString(bool?)
public static string ToString(bool? value)
Parameters
valuebool?
Returns
ToString(DateTime?)
public static string ToString(DateTime? value)
Parameters
valueDateTime?
Returns
ToString(DateTime?, string)
public static string ToString(DateTime? value, string valueFormat)
Parameters
Returns
ToString(decimal?)
public static string ToString(decimal? value)
Parameters
valuedecimal?
Returns
ToString(decimal?, string)
public static string ToString(decimal? value, string valueFormat)
Parameters
Returns
ToString(decimal?, string, string, string, string)
public static string ToString(decimal? value, string valueFormat, string valueFormatNull, string valueFormatZero, string valueFormatOne)
Parameters
valuedecimal?valueFormatstringvalueFormatNullstringvalueFormatZerostringvalueFormatOnestring
Returns
ToString(double?)
public static string ToString(double? value)
Parameters
valuedouble?
Returns
ToString(double?, string)
public static string ToString(double? value, string valueFormat)
Parameters
Returns
ToString(double?, string, string, string, string)
public static string ToString(double? value, string valueFormat, string valueFormatNull, string valueFormatZero, string valueFormatOne)
Parameters
valuedouble?valueFormatstringvalueFormatNullstringvalueFormatZerostringvalueFormatOnestring
Returns
ToString(int?)
public static string ToString(int? value)
Parameters
valueint?
Returns
ToString(int?, string)
public static string ToString(int? value, string valueFormat)
Parameters
Returns
ToString(int?, string, string, string, string)
public static string ToString(int? value, string valueFormat, string valueFormatNull, string valueFormatZero, string valueFormatOne)
Parameters
Returns
ToString(long?)
public static string ToString(long? value)
Parameters
valuelong?
Returns
ToString(long?, string)
public static string ToString(long? value, string valueFormat)
Parameters
Returns
ToString(long?, string, string, string, string)
public static string ToString(long? value, string valueFormat, string valueFormatNull, string valueFormatZero, string valueFormatOne)
Parameters
Returns
ToString(string, string, string)
public static string ToString(string value, string valueFormat, string valueFormatNull)