예제 #1
0
 /// <summary>
 /// Check equatlity between two <see cref="ConnectionGene"/>s
 /// </summary>
 /// <param name="obj">Another <see cref="ConnectionGene"/></param>
 /// <returns>a boolean that confirm or not the equality</returns>
 public override bool Equals(object obj)
 {
     if (obj is ConnectionGene c)
     {
         return(In.Equals(c.In) && Out.Equals(c.Out));
     }
     return(false);
 }
예제 #2
0
        public bool Equals(CFGTaintInfo other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }
            // todo: Check taint set too
            var comparer = new ImmutableDictionaryComparer <EdgeType, ImmutableVariableStorage>();

            return(In.Equals(other.In) && comparer.Equals(Out, other.Out));
        }