예제 #1
0
        public override bool Equals(object obj)
        {
            GrammarBuilderPhrase refObj = obj as GrammarBuilderPhrase;

            if (refObj == null)
            {
                return(false);
            }
            return(_phrase == refObj._phrase && _matchMode == refObj._matchMode && _subsetMatching == refObj._subsetMatching);
        }
        public override bool Equals(object obj)
        {
            GrammarBuilderPhrase grammarBuilderPhrase = obj as GrammarBuilderPhrase;

            if (grammarBuilderPhrase == null)
            {
                return(false);
            }
            if (_phrase == grammarBuilderPhrase._phrase && _matchMode == grammarBuilderPhrase._matchMode)
            {
                return(_subsetMatching == grammarBuilderPhrase._subsetMatching);
            }
            return(false);
        }