Class ICO
IČO - Identifikačné číslo organizácie jednoznačne identifikujúce právnicku právnickej
osoby alebo fyzickej osoby (podnikateľa) a má evidenčný význam. IČO tvorí 8 alebo 12 číslic.
V prípade podnikateľa, ktorého IČO má dĺžku 6 znakov, budú na začiatok doplnené dve nuly.
Inheritance
System.Object
ICO
Implements
System.ICloneable
System.Collections.Generic.IEnumerable<System.Char>
System.Collections.IEnumerable
Assembly: NineDigit.eKasa.dll
Syntax
public sealed class ICO : Object, IEquatable<ICO>, IComparable<ICO>, IDeepCloneable<ICO>, IDeepCloneable, ICloneable, IEnumerable<char>, IEnumerable
Examples
87654321, 00654321, 123456789012
Constructors
ICO(String)
Declaration
Parameters
Type |
Name |
Description |
System.String |
value |
|
Fields
MaxLength
Declaration
public const int MaxLength = 12
Field Value
Type |
Description |
System.Int32 |
|
MinLength
Declaration
public const int MinLength = 8
Field Value
Type |
Description |
System.Int32 |
|
Properties
Length
Gets number of characters in this instance.
Declaration
public int Length { get; }
Property Value
Type |
Description |
System.Int32 |
|
Methods
CompareTo(ICO)
Declaration
public int CompareTo(ICO other)
Parameters
Type |
Name |
Description |
ICO |
other |
|
Returns
Type |
Description |
System.Int32 |
|
DeepClone()
Declaration
Returns
Equals(ICO)
Declaration
public bool Equals(ICO other)
Parameters
Type |
Name |
Description |
ICO |
other |
|
Returns
Type |
Description |
System.Boolean |
|
Equals(ICO, ICO)
Declaration
public static bool Equals(ICO x, ICO y)
Parameters
Type |
Name |
Description |
ICO |
x |
|
ICO |
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 |
|
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)
Determines whether value
represents an valid short, regular or long format.
Declaration
public static bool IsValid(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
Value to validate
|
Returns
Type |
Description |
System.Boolean |
|
Normalize(String)
Declaration
public static string Normalize(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
Returns
Type |
Description |
System.String |
|
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Operators
Equality(ICO, ICO)
Declaration
public static bool operator ==(ICO x, ICO y)
Parameters
Type |
Name |
Description |
ICO |
x |
|
ICO |
y |
|
Returns
Type |
Description |
System.Boolean |
|
Implicit(ICO to String)
Declaration
public static implicit operator string (ICO ico)
Parameters
Type |
Name |
Description |
ICO |
ico |
|
Returns
Type |
Description |
System.String |
|
Implicit(String to ICO)
Declaration
public static implicit operator ICO(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
Returns
Inequality(ICO, ICO)
Declaration
public static bool operator !=(ICO x, ICO y)
Parameters
Type |
Name |
Description |
ICO |
x |
|
ICO |
y |
|
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