51 references to Name
Microsoft.Net.Http.Headers (6)
CacheControlHeaderValue.cs (1)
571var name = nameValue.Name;
MediaTypeHeaderValue.cs (3)
791if (parameter.Name.Equals(WildcardString, StringComparison.OrdinalIgnoreCase)) 798if (parameter.Name.Equals(QualityString, StringComparison.OrdinalIgnoreCase)) 805var localParameter = NameValueHeaderValue.Find(_parameters, parameter.Name);
NameValueHeaderValue.cs (2)
298destination.Append(values[i].Name.AsSpan()); 446if (value.Name.Equals(name, StringComparison.OrdinalIgnoreCase))
Microsoft.Net.Http.Headers.Tests (45)
ContentDispositionHeaderValueTest.cs (21)
79Assert.Equal("name", contentDisposition.Parameters.First().Name.AsSpan()); 96Assert.Equal("NAME", contentDisposition.Parameters.First().Name.AsSpan()); 101Assert.Equal("NAME", contentDisposition.Parameters.First().Name.AsSpan()); 116Assert.Equal("FILENAME", contentDisposition.Parameters.First().Name.AsSpan()); 121Assert.Equal("FILENAME", contentDisposition.Parameters.First().Name.AsSpan()); 135Assert.Equal("filename", contentDisposition.Parameters.First().Name.AsSpan()); 150Assert.Equal("filename", contentDisposition.Parameters.First().Name.AsSpan()); 166Assert.Equal("FILENAME", contentDisposition.Parameters.First().Name.AsSpan()); 173Assert.Equal("FILENAME", contentDisposition.Parameters.First().Name.AsSpan()); 188Assert.Equal("FILENAME*", contentDisposition.Parameters.First().Name.AsSpan()); 194Assert.Equal("FILENAME*", contentDisposition.Parameters.First().Name.AsSpan()); 209Assert.Equal("filename*", contentDisposition.Parameters.First().Name.AsSpan()); 272Assert.Equal("FILENAME*", contentDisposition.Parameters.First().Name.AsSpan()); 279Assert.Equal("FILENAME*", contentDisposition.Parameters.First().Name.AsSpan()); 313Assert.Equal("Creation-DATE", contentDisposition.Parameters.First().Name.AsSpan()); 321Assert.Equal("Creation-DATE", contentDisposition.Parameters.First().Name.AsSpan()); 339Assert.Equal("read-DATE", contentDisposition.Parameters.First().Name.AsSpan()); 357Assert.Equal("SIZE", contentDisposition.Parameters.First().Name.AsSpan()); 363Assert.Equal("SIZE", contentDisposition.Parameters.First().Name.AsSpan()); 378Assert.Equal("SIZE", contentDisposition.Parameters.First().Name.AsSpan()); 385Assert.Equal("SIZE", contentDisposition.Parameters.First().Name.AsSpan());
MediaTypeHeaderValueTest.cs (13)
165Assert.Same(pair0.Name.Value, pair1.Name.Value); 193Assert.Same(pair0.Name.Value, pair1.Name.Value); 216Assert.Same(pair2.Name.Value, pair1.Name.Value); 237Assert.Equal("charset", mediaType.Parameters.First().Name.AsSpan()); 254Assert.Equal("CHARSET", mediaType.Parameters.First().Name.AsSpan()); 259Assert.Equal("CHARSET", mediaType.Parameters.First().Name.AsSpan()); 272Assert.Equal("q", mediaType.Parameters.First().Name.AsSpan()); 289Assert.Equal("q", mediaType.Parameters.First().Name.AsSpan()); 295Assert.Equal("q", mediaType.Parameters.First().Name.AsSpan()); 309Assert.Equal("Q", mediaType.Parameters.First().Name.AsSpan());
NameValueHeaderValueTest.cs (11)
32Assert.Equal("text", nameValue.Name.AsSpan()); 63Assert.Same(pair0.Name.Value, pair1.Name.Value); 79Assert.Same(pair0.Name.Value, pair1.Name.Value); 98Assert.Same(pair0.Name.Value, pair1.Name.Value); 113Assert.Same(pair0.Name.Value, pair1.Name.Value); 132Assert.Same(pair0.Name.Value, pair1.Name.Value);