Class VoucherNumber
Predstavuje číslo jednoúčelového poukazu pri výmene poukazu za tovar alebo poskytnutú službu.
Inheritance
System.Object
VoucherNumber
Implements
System.ICloneable
System.Collections.Generic.IEnumerable<System.Char>
System.Collections.IEnumerable
Assembly: NineDigit.eKasa.dll
Syntax
public sealed class VoucherNumber : Object, 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 |
System.String |
value |
|
Fields
MaxLength
Declaration
public const byte MaxLength = 50
Field Value
Type |
Description |
System.Byte |
|
MinLength
Declaration
public const byte MinLength = 1
Field Value
Type |
Description |
System.Byte |
|
Properties
Length
Declaration
public int Length { get; }
Property Value
Type |
Description |
System.Int32 |
|
Methods
CompareTo(VoucherNumber)
Declaration
public int CompareTo(VoucherNumber other)
Parameters
Returns
Type |
Description |
System.Int32 |
|
DeepClone()
Declaration
public VoucherNumber DeepClone()
Returns
Equals(VoucherNumber)
Declaration
public bool Equals(VoucherNumber other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Equals(VoucherNumber, VoucherNumber)
Declaration
public static bool Equals(VoucherNumber x, VoucherNumber y)
Parameters
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 |
|
GetEnumerator()
Declaration
public IEnumerator<char> GetEnumerator()
Returns
Type |
Description |
System.Collections.Generic.IEnumerator<System.Char> |
|
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
IsValid(String)
Declaration
public static bool IsValid(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
Returns
Type |
Description |
System.Boolean |
|
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Operators
Equality(VoucherNumber, VoucherNumber)
Declaration
public static bool operator ==(VoucherNumber x, VoucherNumber y)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implicit(VoucherNumber to String)
Declaration
public static implicit operator string (VoucherNumber number)
Parameters
Returns
Type |
Description |
System.String |
|
Implicit(String to VoucherNumber)
Declaration
public static implicit operator VoucherNumber(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
Returns
Inequality(VoucherNumber, VoucherNumber)
Declaration
public static bool operator !=(VoucherNumber x, VoucherNumber y)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Explicit Interface Implementations
IDeepCloneable.DeepClone()
Declaration
object IDeepCloneable.DeepClone()
Returns
Type |
Description |
System.Object |
|
Implements
System.IEquatable<>
System.IComparable<>
System.ICloneable
System.Collections.Generic.IEnumerable<>
System.Collections.IEnumerable