Use readonly fields.

This commit is contained in:
Huo Yaoyuan
2017-05-08 18:56:04 +08:00
parent 4f8549f220
commit dff05bec79
7 changed files with 54 additions and 54 deletions

View File

@ -23,7 +23,7 @@ namespace osu.Game.Online.Chat
[JsonProperty(@"channel_id")]
public int Id;
public SortedList<Message> Messages = new SortedList<Message>((m1, m2) => m1.Id.CompareTo(m2.Id));
public readonly SortedList<Message> Messages = new SortedList<Message>((m1, m2) => m1.Id.CompareTo(m2.Id));
//internal bool Joined;