Table of Contents

Struct DatedShift

Namespace
Acuit.Pinpoint.Server
Assembly
Acuit.Pinpoint.Server.Interfaces.dll

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 DateTime

The shift date. This should be a date only, with no time component.

number byte

The shift number.

Properties

Date

Gets or sets the shift date.

public DateTime Date { get; set; }

Property Value

DateTime

Number

Gets or sets the shift number.

public byte Number { get; set; }

Property Value

byte

Methods

Equals(DatedShift)

Indicates whether this instance and another instance are equal.

public bool Equals(DatedShift other)

Parameters

other DatedShift

The other instance to compare with the current instance.

Returns

bool

true if other and this instance represent the same value; otherwise, false.

Equals(object)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object obj)

Parameters

obj object

The 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 DatedShift

The first value to compare.

datedShift2 DatedShift

The 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 DatedShift

The first value to compare.

datedShift2 DatedShift

The second value to compare.

Returns

bool

Whether the two values are not equal.