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