Пример #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);
        }
Пример #2
0
 /// <returns>True if the StatementCollection contains the specified statement</returns>
 public bool Contains(ResourceStatement resourceStatement)
 {
     return(false);
 }
Пример #3
0
 public void Remove(ResourceStatement resourceStatement)
 {
     // NOOP
 }
Пример #4
0
 public void Add(ResourceStatement statement)
 {
     // NOOP
 }