Show / Hide Table of Contents

Class VoucherNumber

Predstavuje číslo jednoúčelového poukazu pri výmene poukazu za tovar alebo poskytnutú službu.

Inheritance
object
VoucherNumber
Implements
IEquatableVoucherNumber
IComparableVoucherNumber
IDeepCloneableVoucherNumber
IDeepCloneable
ICloneable
IEnumerablechar
IEnumerable
Inherited Members
object.Equals(object, object)
object.GetType()
object.ReferenceEquals(object, object)
Namespace: NineDigiteKasa
Assembly: NineDigit.eKasa.dll
Syntax
public sealed class VoucherNumber : IEquatable<VoucherNumber>, IComparable<VoucherNumber>, IDeepCloneable<VoucherNumber>, IDeepCloneable, ICloneable, IEnumerable<char>, IEnumerable
Examples

201801001

Constructors

VoucherNumber(string)

Declaration
public VoucherNumber(string value)
Parameters
Type Name Description
string value

Fields

MaxLength

Declaration
public const byte MaxLength = 50
Field Value
Type Description
byte

MinLength

Declaration
public const byte MinLength = 1
Field Value
Type Description
byte

Properties

Length

Declaration
public int Length { get; }
Property Value
Type Description
int

Methods

CompareTo(VoucherNumber)

Declaration
public int CompareTo(VoucherNumber other)
Parameters
Type Name Description
VoucherNumber other
Returns
Type Description
int

DeepClone()

Declaration
public VoucherNumber DeepClone()
Returns
Type Description
VoucherNumber

Equals(VoucherNumber)

Declaration
public bool Equals(VoucherNumber other)
Parameters
Type Name Description
VoucherNumber other
Returns
Type Description
bool

Equals(VoucherNumber, VoucherNumber)

Declaration
public static bool Equals(VoucherNumber x, VoucherNumber y)
Parameters
Type Name Description
VoucherNumber x
VoucherNumber y
Returns
Type Description
bool

Equals(object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
object obj
Returns
Type Description
bool
Overrides
object.Equals(object)

GetEnumerator()

Declaration
public IEnumerator<char> GetEnumerator()
Returns
Type Description
IEnumeratorchar

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
int
Overrides
object.GetHashCode()

IsValid(string)

Declaration
public static bool IsValid(string value)
Parameters
Type Name Description
string value
Returns
Type Description
bool

ToString()

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()

Operators

operator ==(VoucherNumber, VoucherNumber)

Declaration
public static bool operator ==(VoucherNumber x, VoucherNumber y)
Parameters
Type Name Description
VoucherNumber x
VoucherNumber y
Returns
Type Description
bool

implicit operator string(VoucherNumber)

Declaration
public static implicit operator string(VoucherNumber number)
Parameters
Type Name Description
VoucherNumber number
Returns
Type Description
string

implicit operator VoucherNumber(string)

Declaration
public static implicit operator VoucherNumber(string value)
Parameters
Type Name Description
string value
Returns
Type Description
VoucherNumber

operator !=(VoucherNumber, VoucherNumber)

Declaration
public static bool operator !=(VoucherNumber x, VoucherNumber y)
Parameters
Type Name Description
VoucherNumber x
VoucherNumber y
Returns
Type Description
bool

Implements

IEquatable<T>
IComparable<T>
IDeepCloneable<T>
IDeepCloneable
ICloneable
IEnumerable<T>
IEnumerable

Extension Methods

IEnumerableExtensions.DistinctBy<TSource, TKey>(IEnumerable<TSource>, Func<TSource, TKey>, IEqualityComparer<TKey>)
IEnumerableExtensions.DistinctBy<TSource, TKey>(IEnumerable<TSource>, Func<TSource, TKey>)
IEnumerableExtensions.ForEach<T>(IEnumerable<T>, Action<T, int>)
IEnumerableExtensions.ForEach<T>(IEnumerable<T>, Action<T>)
IEnumerableExtensions.IsNullOrEmpty<T>(IEnumerable<T>)
IEnumerableExtensions.Paginate<T>(IEnumerable<T>, Pagination)
IEnumerableExtensions.ToReadOnlyCollection<TSource>(IEnumerable<TSource>)
In This Article
Na začiatok stránky Nine Digit, s.r.o. ©