35 lines
No EOL
678 B
C#
35 lines
No EOL
678 B
C#
namespace Marathons;
|
|
|
|
public sealed class Marathon
|
|
{
|
|
//private Node? _head;
|
|
public readonly string City;
|
|
public readonly DateOnly Date;
|
|
public int ParticipantCount { get; private set; }
|
|
|
|
public Marathon(string city, DateOnly date)
|
|
{
|
|
City = city;
|
|
Date = date;
|
|
}
|
|
|
|
public void AddParticipant(Participant participant)
|
|
{
|
|
|
|
}
|
|
|
|
public bool RemoveParticipant(int index)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
public string[] GetResultList()
|
|
{
|
|
return Array.Empty<string>();
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return $"{City} marathon on {Date.ToString(Const.Culture)}";
|
|
}
|
|
} |