Пример #1
0
 /// <summary>
 /// Determines whether the specified span is equal to this instance.
 /// </summary>
 /// <param name="span">The span.</param>
 /// <returns></returns>
 private bool Equals(ModelSpan span)
 {
     return base.Equals(span) && string.Equals(this.ModelTypeName, span.ModelTypeName, StringComparison.Ordinal);
 }
Пример #2
0
 /// <summary>
 /// Determines whether the specified span is equal to this instance.
 /// </summary>
 /// <param name="span">The span.</param>
 /// <returns><see langword="true"/> if the specified <see cref="ModelSpan"/> is equal to this instance; otherwise, <see langword="false"/>.</returns>
 private bool Equals(ModelSpan span)
 {
     return(base.Equals(span) && string.Equals(this.ModelTypeName, span.ModelTypeName, StringComparison.OrdinalIgnoreCase));
 }
Пример #3
0
        /// <summary>
        /// Determines whether the specified <see cref="System.Object"/> is equal to this instance.
        /// </summary>
        /// <param name="obj">The <see cref="System.Object"/> to compare with this instance.</param>
        /// <returns>
        ///   <c>true</c> if the specified <see cref="System.Object"/> is equal to this instance; otherwise, <c>false</c>.
        /// </returns>
        public override bool Equals(object obj)
        {
            ModelSpan modelSpan = obj as ModelSpan;

            return(modelSpan != null && this.Equals(modelSpan));
        }