Rock.Apps.CheckScannerUtility.ZeroCurrencyConverter.ConvertBack C# (CSharp) Méthode

ConvertBack() public méthode

Converts a value.
public ConvertBack ( object value, Type targetType, object parameter, System culture ) : object
value object The value that is produced by the binding target.
targetType System.Type The type to convert to.
parameter object The converter parameter to use.
culture System The culture to use in the converter.
Résultat object
        public object ConvertBack( object value, Type targetType, object parameter, System.Globalization.CultureInfo culture )
        {
            string strValue = value as string;
            return decimal.Parse( strValue.Replace("$", string.Empty ));
        }
ZeroCurrencyConverter