Beispiel #1
0
            public override bool Equals(object obj)
            {
                PortableKey other = (PortableKey)obj;

                return(other.LastWriteTime == this.LastWriteTime &&
                       other.Length == this.Length &&
                       other.Name == this.Name);
            }
Beispiel #2
0
    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);
    }