Exemplo n.º 1
0
        public override bool Equals(object other)
        {
            if (this == other)
            {
                return(true);
            }

            if (other is ResourceStatement)
            {
                if (GetHashCode() != other.GetHashCode())
                {
                    return(false);
                }

                ResourceStatement otherSpecific = (ResourceStatement)other;
                return(
                    GetSubject().GetHashCode() == otherSpecific.GetSubject().GetHashCode() &&
                    GetPredicate().GetHashCode() == otherSpecific.GetPredicate().GetHashCode() &&
                    GetObject().GetHashCode() == otherSpecific.GetObject().GetHashCode()
                    );
            }

            return(false);
        }
Exemplo n.º 2
0
 /// <returns>True if the StatementCollection contains the specified statement</returns>
 public bool Contains(ResourceStatement resourceStatement)
 {
     return(false);
 }
Exemplo n.º 3
0
 public void Remove(ResourceStatement resourceStatement)
 {
     // NOOP
 }
Exemplo n.º 4
0
 public void Add(ResourceStatement statement)
 {
     // NOOP
 }