Table of Contents

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

value decimal

decimal value.

Returns

Price

Percents.

Percents(double)

Convert the double to percents.

public static Price Percents(this double value)

Parameters

value double

double value.

Returns

Price

Percents.

Percents(int)

Convert the int to percents.

public static Price Percents(this int value)

Parameters

value int

int value.

Returns

Price

Percents.

ToPriceType(string, bool)

Convert string to Price.

public static Price ToPriceType(this string str, bool throwIfNull = false)

Parameters

str string

String value of Price.

throwIfNull bool

Throw ArgumentNullException if the specified string is empty.

Returns

Price

Object Price.