Class Amount
Amount represents an Amount container
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)
Namespace: SIX.TimApi
Assembly: TimApi.dll
Syntax
public class Amount
Constructors
Amount()
Declaration
protected Amount()
Amount(Decimal, String)
construct with amount in major decimal currency units
Declaration
public Amount(decimal value, string currency)
Parameters
Type | Name | Description |
---|---|---|
System.Decimal | value | |
System.String | currency |
Amount(Decimal, String, Int32)
construct with amount in major decimal currency units
Declaration
public Amount(decimal value, string currency, int exponent)
Parameters
Type | Name | Description |
---|---|---|
System.Decimal | value | |
System.String | currency | |
System.Int32 | exponent |
Amount(Int32, String)
construct with amount in minor currency units
Declaration
public Amount(int value, string currency)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | value | |
System.String | currency |
Amount(Int32, String, Int32)
contruct with amount in minor currency units
Declaration
public Amount(int value, string currency, int exponent)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | value | |
System.String | currency | |
System.Int32 | exponent |
Amount(Int64, String)
construct with amount in minor currency units
Declaration
public Amount(long value, string currency)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | value | |
System.String | currency |
Amount(Int64, String, Int32)
construct with amount in minor currency units
Declaration
public Amount(long value, string currency, int exponent)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | value | |
System.String | currency | |
System.Int32 | exponent |
Properties
Currency
Currency of the specified amount.
Declaration
public string Currency { get; }
Property Value
Type | Description |
---|---|
System.String |
DecValue
the amount in major currency units
Declaration
public decimal DecValue { get; }
Property Value
Type | Description |
---|---|
System.Decimal |
Exponent
Exponent of the specified amount.
Declaration
public int Exponent { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Value
the amount in minor currency units
Declaration
public long Value { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
Methods
ToString()
String representation of the Amount as Currency and Value e.g. "CHF 3.85"
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | The String representation of the Amount |
Overrides
System.Object.ToString()