Show / Hide Table of Contents

Class UnitPriceAmount

Jednotková cena v EUR s presnosťou na šesť desatinných miest.

Inheritance
System.Object
UnitPriceAmount
Implements
System.IEquatable<UnitPriceAmount>
System.IComparable<UnitPriceAmount>
System.IFormattable
Namespace: NineDigit.eKasa
Assembly: NineDigit.eKasa.dll
Syntax
public sealed class UnitPriceAmount : ValueType, IEquatable<UnitPriceAmount>, IComparable<UnitPriceAmount>, IFormattable

Constructors

UnitPriceAmount(UnitPriceAmount)

Declaration
public UnitPriceAmount(UnitPriceAmount unitPriceAmount)
Parameters
Type Name Description
UnitPriceAmount unitPriceAmount

UnitPriceAmount(Decimal)

Declaration
public UnitPriceAmount(Decimal value)
Parameters
Type Name Description
System.Decimal value

Fields

MaxValue

Declaration
public const int MaxValue = 10000000
Field Value
Type Description
System.Int32

MinValue

Declaration
public const int MinValue = -10000000
Field Value
Type Description
System.Int32

Scale

Declaration
public const int Scale = 6
Field Value
Type Description
System.Int32

Properties

IsNegative

Declaration
public bool IsNegative { get; }
Property Value
Type Description
System.Boolean

IsPositive

Declaration
public bool IsPositive { get; }
Property Value
Type Description
System.Boolean

IsZero

Declaration
public bool IsZero { get; }
Property Value
Type Description
System.Boolean

Methods

CompareTo(UnitPriceAmount)

Declaration
public int CompareTo(UnitPriceAmount other)
Parameters
Type Name Description
UnitPriceAmount other
Returns
Type Description
System.Int32

Equals(UnitPriceAmount)

Declaration
public bool Equals(UnitPriceAmount other)
Parameters
Type Name Description
UnitPriceAmount other
Returns
Type Description
System.Boolean

Equals(UnitPriceAmount, UnitPriceAmount)

Declaration
public static bool Equals(UnitPriceAmount x, UnitPriceAmount y)
Parameters
Type Name Description
UnitPriceAmount x
UnitPriceAmount y
Returns
Type Description
System.Boolean

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj
Returns
Type Description
System.Boolean

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32

IsValid(Decimal)

Declaration
public static bool IsValid(Decimal value)
Parameters
Type Name Description
System.Decimal value
Returns
Type Description
System.Boolean

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String

ToString(String, IFormatProvider)

Declaration
public string ToString(string format, IFormatProvider formatProvider)
Parameters
Type Name Description
System.String format
System.IFormatProvider formatProvider
Returns
Type Description
System.String

Operators

Equality(UnitPriceAmount, UnitPriceAmount)

Declaration
public static bool operator ==(UnitPriceAmount x, UnitPriceAmount y)
Parameters
Type Name Description
UnitPriceAmount x
UnitPriceAmount y
Returns
Type Description
System.Boolean

GreaterThan(UnitPriceAmount, UnitPriceAmount)

Declaration
public static bool operator>(UnitPriceAmount x, UnitPriceAmount y)
Parameters
Type Name Description
UnitPriceAmount x
UnitPriceAmount y
Returns
Type Description
System.Boolean

GreaterThanOrEqual(UnitPriceAmount, UnitPriceAmount)

Declaration
public static bool operator >=(UnitPriceAmount x, UnitPriceAmount y)
Parameters
Type Name Description
UnitPriceAmount x
UnitPriceAmount y
Returns
Type Description
System.Boolean

Implicit(UnitPriceAmount to Decimal)

Declaration
public static implicit operator Decimal(UnitPriceAmount unitPriceAmount)
Parameters
Type Name Description
UnitPriceAmount unitPriceAmount
Returns
Type Description
System.Decimal

Implicit(Decimal to UnitPriceAmount)

Declaration
public static implicit operator UnitPriceAmount(Decimal value)
Parameters
Type Name Description
System.Decimal value
Returns
Type Description
UnitPriceAmount

Inequality(UnitPriceAmount, UnitPriceAmount)

Declaration
public static bool operator !=(UnitPriceAmount x, UnitPriceAmount y)
Parameters
Type Name Description
UnitPriceAmount x
UnitPriceAmount y
Returns
Type Description
System.Boolean

LessThan(UnitPriceAmount, UnitPriceAmount)

Declaration
public static bool operator <(UnitPriceAmount x, UnitPriceAmount y)
Parameters
Type Name Description
UnitPriceAmount x
UnitPriceAmount y
Returns
Type Description
System.Boolean

LessThanOrEqual(UnitPriceAmount, UnitPriceAmount)

Declaration
public static bool operator <=(UnitPriceAmount x, UnitPriceAmount y)
Parameters
Type Name Description
UnitPriceAmount x
UnitPriceAmount y
Returns
Type Description
System.Boolean

Multiply(Quantity, UnitPriceAmount)

Declaration
public static Amount operator *(Quantity quantity, UnitPriceAmount unitPriceAmount)
Parameters
Type Name Description
Quantity quantity
UnitPriceAmount unitPriceAmount
Returns
Type Description
Amount

Multiply(UnitPriceAmount, Quantity)

Declaration
public static Amount operator *(UnitPriceAmount unitPriceAmount, Quantity quantity)
Parameters
Type Name Description
UnitPriceAmount unitPriceAmount
Quantity quantity
Returns
Type Description
Amount

Implements

System.IEquatable<>
System.IComparable<>
System.IFormattable
In This Article
Na začiatok stránky Nine Digit, s.r.o. ©