Skip to content

Commit

Permalink
Removed warnings: added new keywords for Default fields
Browse files Browse the repository at this point in the history
  • Loading branch information
alecsg77 committed Jul 4, 2018
1 parent 6d4a74d commit 7649a12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace ExpressionTreeToolkit
public partial class ExpressionEqualityComparer : EqualityComparer<Expression>
{
private readonly IEqualityComparer<Expression> _equalityComparer;
public static ExpressionEqualityComparer Default = new ExpressionEqualityComparer();
public new static readonly ExpressionEqualityComparer Default = new ExpressionEqualityComparer();

public ExpressionEqualityComparer()
: this(null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 7649a12

Please sign in to comment.