From 7649a12ea6736dadf38b735d58e78f33c94247e1 Mon Sep 17 00:00:00 2001 From: Alessio Gogna Date: Thu, 5 Jul 2018 00:32:46 +0200 Subject: [PATCH] Removed warnings: added new keywords for Default fields --- src/ExpressionTreeToolkit.Core/ExpressionEqualityComparer.cs | 2 +- .../ExpressionEqualityComparer_ExtensionBehavours.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ExpressionTreeToolkit.Core/ExpressionEqualityComparer.cs b/src/ExpressionTreeToolkit.Core/ExpressionEqualityComparer.cs index c03be3f..fb8c9b9 100644 --- a/src/ExpressionTreeToolkit.Core/ExpressionEqualityComparer.cs +++ b/src/ExpressionTreeToolkit.Core/ExpressionEqualityComparer.cs @@ -10,7 +10,7 @@ namespace ExpressionTreeToolkit public partial class ExpressionEqualityComparer : EqualityComparer { private readonly IEqualityComparer _equalityComparer; - public static ExpressionEqualityComparer Default = new ExpressionEqualityComparer(); + public new static readonly ExpressionEqualityComparer Default = new ExpressionEqualityComparer(); public ExpressionEqualityComparer() : this(null) diff --git a/test/ExpressionTreeToolkit.UnitTests/ExpressionEqualityComparer_ExtensionBehavours.cs b/test/ExpressionTreeToolkit.UnitTests/ExpressionEqualityComparer_ExtensionBehavours.cs index cdae86a..c5718b8 100644 --- a/test/ExpressionTreeToolkit.UnitTests/ExpressionEqualityComparer_ExtensionBehavours.cs +++ b/test/ExpressionTreeToolkit.UnitTests/ExpressionEqualityComparer_ExtensionBehavours.cs @@ -126,7 +126,7 @@ protected override int GetHashCodeExpression(MyExpression obj) } } - public static MyExpressionEqualityComparer Default { get; } = new MyExpressionEqualityComparer(); + public new static readonly MyExpressionEqualityComparer Default = new MyExpressionEqualityComparer(); } [Fact]