Beispiel #1
0
        /// <summary>
        /// Are both segment identifiers referencing the same <see cref="DialogSegment"/>?
        /// </summary>
        /// <param name="segment">other <see cref="DialogSegmentIdentifier"/> to compare</param>
        /// <returns>true if identifiers reference the same <see cref="DialogSegment"/></returns>
        public bool Compatible(DialogSegmentIdentifier segment)
        {
            if (!base.Compatible(segment))
            {
                return(false);
            }
            if (DialogSegmentId != segment.DialogSegmentId)
            {
                return(false);
            }

            return(true);
        }
Beispiel #2
0
 protected bool Equals(DialogSegmentIdentifier other)
 {
     return(Compatible(other));
 }