Browse Source

Fix ambiguous equality operators

pull/438/head
Ionite 10 months ago
parent
commit
e19f18d0d4
No known key found for this signature in database
  1. 11
      StabilityMatrix.Core/Models/FileInterfaces/FileSystemPath.cs

11
StabilityMatrix.Core/Models/FileInterfaces/FileSystemPath.cs

@ -4,7 +4,7 @@ using JetBrains.Annotations;
namespace StabilityMatrix.Core.Models.FileInterfaces;
[PublicAPI]
public class FileSystemPath : IEquatable<FileSystemPath>, IEquatable<string>, IFormattable
public class FileSystemPath : IEquatable<FileSystemPath>, IFormattable
{
public string FullPath { get; }
@ -65,15 +65,6 @@ public class FileSystemPath : IEquatable<FileSystemPath>, IEquatable<string>, IF
);
}
/// <inheritdoc />
public bool Equals(string? other)
{
if (ReferenceEquals(null, other))
return false;
return Equals((FileSystemPath)other);
}
/// <inheritdoc />
public override bool Equals(object? obj)
{

Loading…
Cancel
Save