Method Equals
Equals(Ticket)
Determines whether the specified Ticket object is equal to the current object.
public bool Equals(Ticket other)
Parameters
otherTicketThe object to compare with the current object.
Returns
- bool
trueif the specified object is equal to the current object; otherwise,false.
Remarks
Tickets are considered equal if their ID is the same.
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object obj)
Parameters
objobjectThe object to compare with the current object.
Returns
- bool
trueif the specified object is equal to the current object; otherwise,false.
Remarks
Tickets are considered equal if their ID is the same.