Ejemplo n.º 1
0
        public bool Equals(SubQuery other)
        {
            if (ReferenceEquals(this, other))
            {
                return(true);
            }
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (!EqualsMeaning(other))
            {
                return(false);
            }
            bool same = //Equals(other.ov_TargetBot, ov_TargetBot)
                        //  && Equals(other.CurrentTemplate, CurrentTemplate)
                        //  && Equals(other.LastTagHandler, LastTagHandler)
                        //Equals(other.Pattern, Pattern)
                        //  && Equals(other.prefix, prefix)
                        Equals(other.Request, Request) &&
                        Equals(other.Result, Result)
                        //  && Equals(other.TopLevel, TopLevel)
                        && StaticAIMLUtils.CollectionEquals(other.GuardStar, GuardStar) &&
                        StaticAIMLUtils.CollectionEquals(other.InputStars, InputStars) &&
                        StaticAIMLUtils.CollectionEquals(other.ThatStars, ThatStars) &&
                        StaticAIMLUtils.CollectionEquals(other.TopicStar, TopicStar) &&
                        StaticAIMLUtils.SetsEquals(other.Flags, Flags)
                        //  && other.HasFailed == HasFailed
                        //  && other.HasSuceeded == HasSuceeded
                        //  && other.GetDictValue == GetDictValue
                        //  && other.SetDictValue == SetDictValue
                        //  && other.IsTraced.Equals(IsTraced)
                        //  && SetsEquals(other.Templates, Templates)
                        //  && Equals(other.Graph, Graph)
            ;

            if (!same)
            {
                return(true);

                return(false);
            }
            // ReSharper disable ConditionIsAlwaysTrueOrFalse
            return(same);
            // ReSharper restore ConditionIsAlwaysTrueOrFalse
        }