예제 #1
0
            /// <summary>
            /// Initializes a new instance of the <see cref="SubtermCollection"/> class.
            /// </summary>
            /// <param name="owner">The owner of this collection.</param>
            public SubtermCollection(TypeATerm owner)
            {
                #region Contract
                Debug.Assert(owner != null);
                #endregion

                this.owner = owner;
            }
예제 #2
0
        /// <inheritdoc />
        public bool Equals(TypeATerm other)
        {
            if (Object.ReferenceEquals(this, other))
            {
                return(true);
            }

            return(base.Equals(other) &&
                   this.Name.Equals(other.Name));
        }