Class Year
Inheritance
System.Object
Year
Implements
System.IComparable
System.IFormattable
Assembly: NineDigit.eKasa.dll
Syntax
public sealed class Year : ValueType, IComparable, IComparable<Year>, IEquatable<Year>, IFormattable
Constructors
Year(Year)
Declaration
Parameters
Type |
Name |
Description |
Year |
year |
|
Year(Int32)
Declaration
Parameters
Type |
Name |
Description |
System.Int32 |
value |
|
Fields
MaxValue
Declaration
public const int MaxValue = 9999
Field Value
Type |
Description |
System.Int32 |
|
MinValue
Declaration
public const int MinValue = 2019
Field Value
Type |
Description |
System.Int32 |
|
Methods
CanParseToValidYear(String)
Declaration
public static bool CanParseToValidYear(string s)
Parameters
Type |
Name |
Description |
System.String |
s |
|
Returns
Type |
Description |
System.Boolean |
|
CompareTo(Year)
Declaration
public int CompareTo(Year other)
Parameters
Type |
Name |
Description |
Year |
other |
|
Returns
Type |
Description |
System.Int32 |
|
CompareTo(Object)
Declaration
public int CompareTo(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Int32 |
|
Equals(Year)
Declaration
public bool Equals(Year other)
Parameters
Type |
Name |
Description |
Year |
other |
|
Returns
Type |
Description |
System.Boolean |
|
Equals(Year, Year)
Declaration
public static bool Equals(Year x, Year 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 |
|
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
IsValid(Int32)
Declaration
public static bool IsValid(int value)
Parameters
Type |
Name |
Description |
System.Int32 |
value |
|
Returns
Type |
Description |
System.Boolean |
|
Parse(String)
Declaration
public static Year Parse(string s)
Parameters
Type |
Name |
Description |
System.String |
s |
|
Returns
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
ToString(String)
Declaration
public string ToString(string format)
Parameters
Type |
Name |
Description |
System.String |
format |
|
Returns
Type |
Description |
System.String |
|
Declaration
public string ToString(string format, IFormatProvider provider)
Parameters
Type |
Name |
Description |
System.String |
format |
|
System.IFormatProvider |
provider |
|
Returns
Type |
Description |
System.String |
|
ToUInt16()
Declaration
Returns
Type |
Description |
System.UInt16 |
|
TryParse(String, out Year)
Declaration
public static bool TryParse(string s, out Year receiptNumber)
Parameters
Type |
Name |
Description |
System.String |
s |
|
Year |
receiptNumber |
|
Returns
Type |
Description |
System.Boolean |
|
Operators
Equality(Year, Year)
Declaration
public static bool operator ==(Year x, Year y)
Parameters
Returns
Type |
Description |
System.Boolean |
|
GreaterThan(Year, Year)
Declaration
public static bool operator>(Year left, Year right)
Parameters
Type |
Name |
Description |
Year |
left |
|
Year |
right |
|
Returns
Type |
Description |
System.Boolean |
|
GreaterThanOrEqual(Year, Year)
Declaration
public static bool operator >=(Year left, Year right)
Parameters
Type |
Name |
Description |
Year |
left |
|
Year |
right |
|
Returns
Type |
Description |
System.Boolean |
|
Implicit(Year to Int32)
Declaration
public static implicit operator int (Year year)
Parameters
Type |
Name |
Description |
Year |
year |
|
Returns
Type |
Description |
System.Int32 |
|
Implicit(Int32 to Year)
Declaration
public static implicit operator Year(int value)
Parameters
Type |
Name |
Description |
System.Int32 |
value |
|
Returns
Inequality(Year, Year)
Declaration
public static bool operator !=(Year x, Year y)
Parameters
Returns
Type |
Description |
System.Boolean |
|
LessThan(Year, Year)
Declaration
public static bool operator <(Year left, Year right)
Parameters
Type |
Name |
Description |
Year |
left |
|
Year |
right |
|
Returns
Type |
Description |
System.Boolean |
|
LessThanOrEqual(Year, Year)
Declaration
public static bool operator <=(Year left, Year right)
Parameters
Type |
Name |
Description |
Year |
left |
|
Year |
right |
|
Returns
Type |
Description |
System.Boolean |
|
Implements
System.IComparable
System.IComparable<>
System.IEquatable<>
System.IFormattable