Show / Hide Table of Contents

Class CustomerId

Unikátny identifikátor kupujúceho slúžiaci pre identifikáciu vlastníka prijatého dokladu s dĺžkou max 50 znakov. Povolené hodnoty sú veľké a malé písmená a číslice.

Inheritance
object
CustomerId
Implements
IEquatableCustomerId
IComparableCustomerId
IDeepCloneableCustomerId
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 CustomerId : IEquatable<CustomerId>, IComparable<CustomerId>, IDeepCloneable<CustomerId>, IDeepCloneable, ICloneable, IEnumerable<char>, IEnumerable
Examples

987654321

Constructors

CustomerId(CustomerId)

Declaration
public CustomerId(CustomerId customerId)
Parameters
Type Name Description
CustomerId customerId

CustomerId(string)

Declaration
public CustomerId(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(CustomerId)

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

DeepClone()

Declaration
public CustomerId DeepClone()
Returns
Type Description
CustomerId

Equals(CustomerId)

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

Equals(CustomerId, CustomerId)

Declaration
public static bool Equals(CustomerId x, CustomerId y)
Parameters
Type Name Description
CustomerId x
CustomerId 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 ==(CustomerId, CustomerId)

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

implicit operator string(CustomerId)

Declaration
public static implicit operator string(CustomerId customerId)
Parameters
Type Name Description
CustomerId customerId
Returns
Type Description
string

implicit operator CustomerId(string)

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

operator !=(CustomerId, CustomerId)

Declaration
public static bool operator !=(CustomerId x, CustomerId y)
Parameters
Type Name Description
CustomerId x
CustomerId 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. ©