Base:
15 references to Equals
Microsoft.AspNetCore.Http.Results (1)
src\Shared\ResultsHelpers\FileResultHelper.cs (1)
273if (entityTag.Equals(EntityTagHeaderValue.Any) || entityTag.Compare(etag, useStrongComparison))
Microsoft.AspNetCore.Mvc.Core (1)
src\Shared\ResultsHelpers\FileResultHelper.cs (1)
273if (entityTag.Equals(EntityTagHeaderValue.Any) || entityTag.Compare(etag, useStrongComparison))
Microsoft.AspNetCore.StaticAssets (2)
StaticAssetsInvoker.cs (2)
310if (etag.Equals(EntityTagHeaderValue.Any) || etag.Compare(_etag, useStrongComparison: false)) 326if (etag.Equals(EntityTagHeaderValue.Any) || etag.Compare(_etag, useStrongComparison: false))
Microsoft.AspNetCore.StaticFiles (2)
StaticFileContext.cs (2)
154if (etag.Equals(EntityTagHeaderValue.Any) || etag.Compare(_etag, useStrongComparison: true)) 169if (etag.Equals(EntityTagHeaderValue.Any) || etag.Compare(_etag, useStrongComparison: true))
Microsoft.Net.Http.Headers (1)
RangeConditionHeaderValue.cs (1)
96return _entityTag.Equals(other._entityTag);
Microsoft.Net.Http.Headers.Tests (8)
EntityTagHeaderValueTest.cs (8)
87Assert.False(etag1.Equals(etag2), "Different casing."); 88Assert.False(etag2.Equals(etag1), "Different casing."); 89Assert.False(etag1.Equals(null), "tag vs. <null>."); 90Assert.False(etag1!.Equals(etag3), "strong vs. weak."); 91Assert.False(etag3.Equals(etag1), "weak vs. strong."); 92Assert.False(etag1.Equals(etag4), "tag vs. tag1."); 93Assert.False(etag1.Equals(etag6), "tag vs. *."); 94Assert.True(etag1.Equals(etag5), "tag vs. tag..");