public override bool Equals(object obj) { PortableKey other = (PortableKey)obj; return(other.LastWriteTime == this.LastWriteTime && other.Length == this.Length && other.Name == this.Name); }
public override bool Equals(object obj) { PortableKey other = (PortableKey)obj; foreach (KeyValuePair <string, object> key in keyBag) { if (other.keyBag[key.Key] != key.Value) { return(false); } } return(true); }