コード例 #1
0
ファイル: ModelSpan.cs プロジェクト: hongymagic/Nancy
 /// <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
ファイル: ModelSpan.cs プロジェクト: williware/Nancy
 /// <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
ファイル: ModelSpan.cs プロジェクト: pietervp/Nancy
        /// <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));
        }