ex-col-04-training/waiting_room/WaitingRoom/Node.cs
2025-01-13 20:30:20 +01:00

16 lines
No EOL
343 B
C#

namespace WaitingRoom;
/// <summary>
/// Represents a node which holds patient data and can be linked with other
/// nodes to form the waiting queue
/// </summary>
public sealed class Node
{
public Patient Data { get; }
public Node? Next { get; set; }
public Node(Patient patient)
{
Data = patient;
}
}