Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,6 @@ public override string ToString()

return vsb.ToString();
}
public override int GetHashCode() => base.GetHashCode();
public override bool Equals(object? obj) => obj == (object)this;
#endregion

#region Public Members
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ public bool EndsWith(string value, StringComparison comparisonType)
{
ArgumentNullException.ThrowIfNull(value);

if ((object)this == (object)value)
if (ReferenceEquals(this, value))
{
CheckStringComparison(comparisonType);
return true;
Expand Down Expand Up @@ -580,7 +580,7 @@ public bool EndsWith(string value, bool ignoreCase, CultureInfo? culture)
{
ArgumentNullException.ThrowIfNull(value);

if ((object)this == (object)value)
if (ReferenceEquals(this, value))
{
return true;
}
Expand Down Expand Up @@ -1108,7 +1108,7 @@ public bool StartsWith(string value, StringComparison comparisonType)
{
ArgumentNullException.ThrowIfNull(value);

if ((object)this == (object)value)
if (ReferenceEquals(this, value))
{
CheckStringComparison(comparisonType);
return true;
Expand Down Expand Up @@ -1158,7 +1158,7 @@ public bool StartsWith(string value, bool ignoreCase, CultureInfo? culture)
{
ArgumentNullException.ThrowIfNull(value);

if ((object)this == (object)value)
if (ReferenceEquals(this, value))
{
return true;
}
Expand Down