Adds official .NET 5 support (#300)

This commit is contained in:
Kamron Batman 2020-11-07 13:26:27 -08:00 committed by GitHub
parent c3289a20ab
commit 013f333898
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
39 changed files with 496 additions and 668 deletions

View file

@ -403,7 +403,7 @@ namespace Server.Accounting
}
}
public int CompareTo(IAccount other) => other == null ? 1 : Username.CompareTo(other.Username);
public int CompareTo(IAccount other) => string.CompareOrdinal(Username, other?.Username);
/// <summary>
/// This amount represents the current amount of Gold owned by the player.
@ -512,7 +512,7 @@ namespace Server.Accounting
/// <returns>Total gold, capped at Int32.MaxValue</returns>
public long GetTotalGold() => TotalGold + TotalPlat * AccountGold.CurrencyThreshold;
public int CompareTo(Account other) => other == null ? 1 : Username.CompareTo(other.Username);
public int CompareTo(Account other) => string.CompareOrdinal(Username, other?.Username);
/// <summary>
/// Gets the value of a specific flag in the Flags bitfield.