Use expression body for property get/set where possible

This commit is contained in:
Dean Herbert
2019-02-28 13:58:19 +09:00
parent 94a389319d
commit 42be7857d1
130 changed files with 297 additions and 403 deletions

View File

@ -28,7 +28,7 @@ namespace osu.Game.Overlays.BeatmapSet
private BeatmapSetInfo beatmapSet;
public BeatmapSetInfo BeatmapSet
{
get { return beatmapSet; }
get => beatmapSet;
set
{
if (value == beatmapSet) return;
@ -46,8 +46,8 @@ namespace osu.Game.Overlays.BeatmapSet
public BeatmapInfo Beatmap
{
get { return successRate.Beatmap; }
set { successRate.Beatmap = value; }
get => successRate.Beatmap;
set => successRate.Beatmap = value;
}
public Info()
@ -162,8 +162,8 @@ namespace osu.Game.Overlays.BeatmapSet
public Color4 TextColour
{
get { return textFlow.Colour; }
set { textFlow.Colour = value; }
get => textFlow.Colour;
set => textFlow.Colour = value;
}
public MetadataSection(string title)