C# 9 Cleanup (#325)

- [X] Removes EventArgs - not needed
- [X] Merges sequential checks
- [X] Removes redundant type declarations
This commit is contained in:
Kamron Batman 2020-11-27 00:29:21 -08:00 • committed by GitHub
parent 351611a23a
commit 3551d962f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
417 changed files with 2209 additions and 2213 deletions

View file

@ -18,7 +18,7 @@ namespace Server.Commands.Generic
}
public static Dictionary<string, ExtensionInfo> Table { get; } =
new Dictionary<string, ExtensionInfo>(StringComparer.InvariantCultureIgnoreCase);
new(StringComparer.InvariantCultureIgnoreCase);
public int Order { get; }

View file

@ -22,7 +22,7 @@ namespace Server.Commands.Generic
public sealed class TypeCondition : ICondition
{
public static TypeCondition Default = new TypeCondition();
public static TypeCondition Default = new();
void ICondition.Construct(TypeBuilder typeBuilder, ILGenerator il, int index)
{

View file

@ -6,7 +6,7 @@ namespace Server.Commands.Generic
public sealed class DistinctExtension : BaseExtension
{
public static ExtensionInfo ExtInfo =
new ExtensionInfo(30, "Distinct", -1, () => new DistinctExtension());
new(30, "Distinct", -1, () => new DistinctExtension());
private readonly List<Property> m_Properties;

View file

@ -5,7 +5,7 @@ namespace Server.Commands.Generic
{
public sealed class LimitExtension : BaseExtension
{
public static ExtensionInfo ExtInfo = new ExtensionInfo(80, "Limit", 1, () => new LimitExtension());
public static ExtensionInfo ExtInfo = new(80, "Limit", 1, () => new LimitExtension());
public override ExtensionInfo Info => ExtInfo;

View file

@ -5,7 +5,7 @@ namespace Server.Commands.Generic
{
public sealed class SortExtension : BaseExtension
{
public static ExtensionInfo ExtInfo = new ExtensionInfo(40, "Order", -1, () => new SortExtension());
public static ExtensionInfo ExtInfo = new(40, "Order", -1, () => new SortExtension());
private readonly List<OrderInfo> m_Orders;

View file

@ -4,7 +4,7 @@ namespace Server.Commands.Generic
{
public sealed class WhereExtension : BaseExtension
{
public static ExtensionInfo ExtInfo = new ExtensionInfo(20, "Where", -1, () => new WhereExtension());
public static ExtensionInfo ExtInfo = new(20, "Where", -1, () => new WhereExtension());
public override ExtensionInfo Info => ExtInfo;