public bool Equals(ModPath?other) { if (other == null) { return(false); } if (!ModKey.Equals(other.ModKey)) { return(false); } if (string.Equals(Path, other.Path, StringComparison.OrdinalIgnoreCase)) { return(false); } return(true); }
public override bool Equals(object?obj) { return(obj is LoadOrderListing listing && ModKey.Equals(listing.ModKey) && Enabled == listing.Enabled); }