コード例 #1
0
        internal override GrammarBuilderBase Clone()
        {
            SemanticKeyElement semanticKeyElement = new SemanticKeyElement(_semanticKey);

            semanticKeyElement._ruleRef.CloneItems(_ruleRef);
            return(semanticKeyElement);
        }
コード例 #2
0
        public override bool Equals(object obj)
        {
            SemanticKeyElement semanticKeyElement = obj as SemanticKeyElement;

            if (semanticKeyElement == null)
            {
                return(false);
            }
            if (!base.Equals(obj))
            {
                return(false);
            }
            return(_semanticKey == semanticKeyElement._semanticKey);
        }