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

@ -38,10 +38,7 @@ namespace osu.Game.Overlays.Chat.Selection
public IEnumerable<string> FilterTerms => new[] { channel.Name };
public bool MatchingFilter
{
set
{
this.FadeTo(value ? 1f : 0f, 100);
}
set => this.FadeTo(value ? 1f : 0f, 100);
}
public Action<Channel> OnRequestJoin;

View File

@ -23,21 +23,18 @@ namespace osu.Game.Overlays.Chat.Selection
public IEnumerable<string> FilterTerms => Array.Empty<string>();
public bool MatchingFilter
{
set
{
this.FadeTo(value ? 1f : 0f, 100);
}
set => this.FadeTo(value ? 1f : 0f, 100);
}
public string Header
{
get { return header.Text; }
set { header.Text = value.ToUpperInvariant(); }
get => header.Text;
set => header.Text = value.ToUpperInvariant();
}
public IEnumerable<Channel> Channels
{
set { ChannelFlow.ChildrenEnumerable = value.Select(c => new ChannelListItem(c)); }
set => ChannelFlow.ChildrenEnumerable = value.Select(c => new ChannelListItem(c));
}
public ChannelSection()