C# Class ATMLModelLibrary.model.Quantity

Inheritance: ICloneable
Show file Open project: UtrsSoftware/ATMLWorkBench Class Usage Examples

Public Properties

Property Type Description
NUMERIC_PATTERN string
PATTERN string

Public Methods

Method Description
Clone ( ) : object
Equals ( object obj ) : bool
GetHashCode ( ) : int
IsNegative ( ) : bool
IsPositive ( ) : bool
Max ( Quantity qty1, Quantity qty2 ) : Quantity
Min ( Quantity qty1, Quantity qty2 ) : Quantity
Quantity ( ) : System
Quantity ( Decimal value ) : System
Quantity ( string value ) : System
Quantity ( string value, string &remainder ) : System
ToString ( ) : string
Validate ( ) : void
operator ( ) : Quantity
operator ( ) : bool

Protected Methods

Method Description
Equals ( Quantity other ) : bool
OnValueChanged ( ) : void

Private Methods

Method Description
InitQuantity ( string value, string &remainder ) : void
_unit_ValueChanged ( object sender, EventArgs e ) : void

Method Details

Clone() public method

public Clone ( ) : object
return object

Equals() protected method

protected Equals ( Quantity other ) : bool
other Quantity
return bool

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

IsNegative() public method

public IsNegative ( ) : bool
return bool

IsPositive() public method

public IsPositive ( ) : bool
return bool

Max() public static method

public static Max ( Quantity qty1, Quantity qty2 ) : Quantity
qty1 Quantity
qty2 Quantity
return Quantity

Min() public static method

public static Min ( Quantity qty1, Quantity qty2 ) : Quantity
qty1 Quantity
qty2 Quantity
return Quantity

OnValueChanged() protected method

protected OnValueChanged ( ) : void
return void

Quantity() public method

public Quantity ( ) : System
return System

Quantity() public method

public Quantity ( Decimal value ) : System
value Decimal
return System

Quantity() public method

public Quantity ( string value ) : System
value string
return System

Quantity() public method

public Quantity ( string value, string &remainder ) : System
value string
remainder string
return System

ToString() public method

public ToString ( ) : string
return string

Validate() public method

public Validate ( ) : void
return void

operator() public static method

public static operator ( ) : Quantity
return Quantity

operator() public static method

public static operator ( ) : bool
return bool

Property Details

NUMERIC_PATTERN public static property

public static string NUMERIC_PATTERN
return string

PATTERN public static property

public static string PATTERN
return string