Class ConversionExtensions
Inheritance
System.Object
ConversionExtensions
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()
Namespace: Syncfusion.Windows.Shared
Assembly: Syncfusion.Shared.Wpf.dll
Syntax
public static class ConversionExtensions
Methods
ConvertToDecimalNull(String)
Convert string to Decimal
Declaration
public static decimal? ConvertToDecimalNull(this string text)
Parameters
Type | Name | Description |
---|---|---|
System.String | text |
Returns
Type |
---|
System.Nullable<System.Decimal> |
ConvertToDoubleNull(String, CultureInfo, NumberFormatInfo)
Convert String to DecimalNull with Culture
Declaration
public static double? ConvertToDoubleNull(this string text, CultureInfo culture, NumberFormatInfo numberformat)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | |
System.Globalization.CultureInfo | culture | |
System.Globalization.NumberFormatInfo | numberformat |
Returns
Type |
---|
System.Nullable<System.Double> |
ConvertToInt64Null(String)
Convert string to Int64Null
Declaration
public static long? ConvertToInt64Null(this string text)
Parameters
Type | Name | Description |
---|---|---|
System.String | text |
Returns
Type |
---|
System.Nullable<System.Int64> |