public override bool Equals(Object o) { if (this == o) { return true; } if ((o == null) || !(o is NotSentence)) { return false; } NotSentence ns = (NotSentence)o; return (ns.negated.Equals(negated)); }