Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 public override bool Equals(object?obj)
 {
     return(obj is LoadOrderListing listing &&
            ModKey.Equals(listing.ModKey) &&
            Enabled == listing.Enabled);
 }