public override int GetHashCode() { unchecked { int result = (Preconds != null ? Preconds.GetHashCode() : 0); result = (result * 397) ^ (Pattern != null ? Pattern.GetHashCode() : 0); result = (result * 397) ^ (That != null ? That.GetHashCode() : 0); result = (result * 397) ^ (Topic != null ? Topic.GetHashCode() : 0); result = (result * 397) ^ (GraphmasterNode != null ? GraphmasterNode.GetHashCode() : 0); return(result); } }
public void AddPrecondition(ConversationCondition info) { if (info == null) { return; } if (Preconds == null) { Preconds = new List <ConversationCondition>(); } if (Preconds.Contains(info)) { return; } Preconds.Add(info); }