Address todos relating to init-only usages

This commit is contained in:
Joseph Madamba
2023-02-08 17:51:28 -08:00
parent 2873905cc6
commit f1decb667e
4 changed files with 16 additions and 21 deletions

View File

@ -298,16 +298,8 @@ namespace osu.Game.Overlays.Profile
public class UserGraphTooltipContent
{
// todo: could use init-only properties on C# 9 which read better than a constructor.
public LocalisableString Name { get; }
public LocalisableString Count { get; }
public LocalisableString Time { get; }
public UserGraphTooltipContent(LocalisableString name, LocalisableString count, LocalisableString time)
{
Name = name;
Count = count;
Time = time;
}
public LocalisableString Name { get; init; }
public LocalisableString Count { get; init; }
public LocalisableString Time { get; init; }
}
}