Struct DatedShift
A dated shift.
public struct DatedShift : IEquatable<DatedShift>
- Implements
- Inherited Members
Constructors
DatedShift(DateTime, byte)
Creates a new DatedShift structure that contains the specified values.
public DatedShift(DateTime date, byte number)
Parameters
date
DateTimeThe shift date. This should be a date only, with no time component.
number
byteThe shift number.
Properties
Date
Gets or sets the shift date.
public DateTime Date { get; set; }
Property Value
Number
Gets or sets the shift number.
public byte Number { get; set; }
Property Value
Methods
Equals(DatedShift)
Indicates whether this instance and another instance are equal.
public bool Equals(DatedShift other)
Parameters
other
DatedShiftThe other instance to compare with the current instance.
Returns
Equals(object)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object obj)
Parameters
obj
objectThe object to compare with the current instance.
Returns
- bool
true if
obj
and this instance are the same type and represent the same value; otherwise, false.
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
The hash code for this instance.
Operators
operator ==(DatedShift, DatedShift)
Override for the equality operator.
public static bool operator ==(DatedShift datedShift1, DatedShift datedShift2)
Parameters
datedShift1
DatedShiftThe first value to compare.
datedShift2
DatedShiftThe second value to compare.
Returns
- bool
Whether the two values are equal.
operator !=(DatedShift, DatedShift)
Override for the inequality operator.
public static bool operator !=(DatedShift datedShift1, DatedShift datedShift2)
Parameters
datedShift1
DatedShiftThe first value to compare.
datedShift2
DatedShiftThe second value to compare.
Returns
- bool
Whether the two values are not equal.