Class PriceExtensions
- Namespace
- Ecng.ComponentModel
- Assembly
- Ecng.ComponentModel.dll
Price extension methods.
public static class PriceExtensions
- Inheritance
-
PriceExtensions
- Inherited Members
Methods
Percents(decimal)
Convert the decimal to percents.
public static Price Percents(this decimal value)
Parameters
Returns
- Price
Percents.
Percents(double)
Convert the double to percents.
public static Price Percents(this double value)
Parameters
Returns
- Price
Percents.
Percents(int)
Convert the int to percents.
public static Price Percents(this int value)
Parameters
Returns
- Price
Percents.
ToPriceType(string, bool)
Convert string to Price.
public static Price ToPriceType(this string str, bool throwIfNull = false)
Parameters
str
stringString value of Price.
throwIfNull
boolThrow ArgumentNullException if the specified string is empty.