Represents a user with a name. More...
Public Member Functions | |
User (string name) | |
Constructor. | |
override bool | Equals (object? obj) |
Override to compare a User or string to this User. | |
override int | GetHashCode () |
Generate a hash code for this instance. | |
Properties | |
string | Name [get] |
The name of the user (read-only). | |
Represents a user with a name.
Definition at line 25 of file Mediator_User_Classes.cs.
|
inline |
Constructor.
name | The name of the user to assign. |
Definition at line 31 of file Mediator_User_Classes.cs.
References User.Name.
|
inline |
|
inline |
Generate a hash code for this instance.
Because we overrode Equals(), we need to override GetHashCode().
Definition at line 71 of file Mediator_User_Classes.cs.
References User.Name.
|
get |
The name of the user (read-only).
Definition at line 40 of file Mediator_User_Classes.cs.
Referenced by User.Equals(), User.GetHashCode(), Visitor_Shop.PickupOrder(), Visitor_Shop.PlaceOrder(), EntryInformation.ToString(), and User.User().