Beispiel #1
0
 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);
     }
 }
Beispiel #2
0
 public void AddPrecondition(ConversationCondition info)
 {
     if (info == null)
     {
         return;
     }
     if (Preconds == null)
     {
         Preconds = new List <ConversationCondition>();
     }
     if (Preconds.Contains(info))
     {
         return;
     }
     Preconds.Add(info);
 }