103 references to Value
Microsoft.AspNetCore.Components (1)
src\Http\Routing\src\Tree\TreeEnumerator.cs (1)
95if (next.Literals.TryGetValue(_tokenizer[next.Depth].Value, out var node))
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
ContentEncodingNegotiator.cs (1)
91context.Response.Headers.ContentEncoding = selectedEncoding.Value;
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
Internal\JsonRequestHelpers.cs (1)
79return charset.HasValue ? Encoding.GetEncoding(charset.Value) : null;
Microsoft.AspNetCore.HeaderParsing.Tests (6)
ParserTests.cs (6)
80Assert.Equal("csrftoken", result[0].Name.Value); 81Assert.Equal("u32t4o3tb3gg43", result[0].Value.Value); 91Assert.Equal("csrftoken", result[0].Name.Value); 92Assert.Equal("u32t4o3tb3gg43", result[0].Value.Value); 93Assert.Equal("_gat", result[1].Name.Value); 94Assert.Equal("1", result[1].Value.Value);
Microsoft.AspNetCore.Http (2)
src\Http\Shared\CookieHeaderParserShared.cs (2)
45store[parsedName.Value.Value!] = Uri.UnescapeDataString(parsedValue.Value.Value!);
Microsoft.AspNetCore.Http.Abstractions (1)
Internal\ParsingHelpers.cs (1)
27var value = DeQuote(segment.Data.Value);
Microsoft.AspNetCore.Http.Extensions (1)
HttpRequestJsonExtensions.cs (1)
338return charset.HasValue ? Encoding.GetEncoding(charset.Value) : null;
Microsoft.AspNetCore.Mvc.Core (5)
Formatters\MediaType.cs (2)
212return mediaType.Value ?? string.Empty; 300return $"{mediaType.Value}; charset={encoding.WebName}";
Formatters\OutputFormatter.cs (1)
174response.ContentType = context.ContentType.Value ?? string.Empty;
Formatters\TextOutputFormatter.cs (1)
125var mediaTypeWithCharset = GetMediaTypeWithCharset(selectedMediaType.Value!, selectedEncoding);
src\Shared\MediaType\ReadOnlyMediaTypeHeaderValue.cs (1)
361return charset.HasValue ? Encoding.GetEncoding(charset.Value) : null;
Microsoft.AspNetCore.Mvc.Core.Test (3)
Formatters\TextOutputFormatterTests.cs (3)
202Assert.Null(MediaTypeHeaderValue.Parse(context.ContentType.Value).Encoding); 206Assert.Equal(MediaTypeHeaderValue.Parse(testContentType.Value), context.HttpContext.Response.GetTypedHeaders().ContentType); 254Assert.Equal(expectedValue, Assert.Single(result).Value.Value);
Microsoft.AspNetCore.Mvc.Core.TestCommon (2)
MediaTypeAssert.cs (2)
38if (!MediaTypeHeaderValue.TryParse(left.Value, out var leftMediaType) || 39!MediaTypeHeaderValue.TryParse(right.Value, out var rightMediaType) ||
Microsoft.AspNetCore.Mvc.FunctionalTests (6)
TempDataInCookiesTest.cs (6)
82Assert.NotNull(cookieTempDataProviderCookie.Value.Value); 84Assert.Null(cookieTempDataProviderCookie.Domain.Value); 102Assert.Null(setCookieHeaderValue.Domain.Value); 134Assert.Null(setCookieHeader.Domain.Value); 158Assert.Null(setCookieHeader.Domain.Value); 187Assert.Null(setCookieHeader.Domain.Value);
Microsoft.AspNetCore.Mvc.TagHelpers (4)
Cache\CacheTagKey.cs (2)
285var value = accessor(collection, trimmedValue.Value); 286result.Add(new KeyValuePair<string, string>(trimmedValue.Value, value ?? string.Empty));
GlobbingUrlBuilder.cs (2)
123var changeToken = FileProvider.Watch(includePattern.Value); 302return value.Value;
Microsoft.AspNetCore.Routing (3)
Matching\NegotiationMatcherPolicy.cs (1)
430var valueToken = value.Value.Value ?? null;
src\Shared\MediaType\ReadOnlyMediaTypeHeaderValue.cs (1)
361return charset.HasValue ? Encoding.GetEncoding(charset.Value) : null;
Tree\TreeEnumerator.cs (1)
95if (next.Literals.TryGetValue(_tokenizer[next.Depth].Value, out var node))
Microsoft.AspNetCore.StaticAssets (1)
Development\StaticAssetDevelopmentRuntimeHandler.cs (1)
38asset = FindOriginalAsset(eTag.Tag.Value!, descriptors);
Microsoft.Extensions.Primitives (2)
StringSegment.cs (2)
88[MemberNotNullWhen(true, nameof(Value))] 662return Value ?? string.Empty;
Microsoft.Net.Http.Headers (4)
HttpHeaderParser.cs (1)
42"The header contains invalid values at index {0}: '{1}'", index, value.Value ?? "<null>"));
MediaTypeHeaderValue.cs (1)
121return Encoding.GetEncoding(charset.Value);
src\Http\Shared\CookieHeaderParserShared.cs (2)
45store[parsedName.Value.Value!] = Uri.UnescapeDataString(parsedValue.Value.Value!);
Microsoft.Net.Http.Headers.Tests (60)
ContentDispositionHeaderValueTest.cs (13)
47Assert.Null(contentDisposition.Name.Value); 48Assert.Null(contentDisposition.FileName.Value); 82Assert.Null(contentDisposition.Name.Value); 104Assert.Null(contentDisposition.Name.Value); 124Assert.Null(contentDisposition.FileName.Value); 139Assert.Null(contentDisposition.FileName.Value); 154Assert.Null(contentDisposition.FileName.Value); 176Assert.Null(contentDisposition.FileName.Value); 189Assert.Null(contentDisposition.FileNameStar.Value); // Decode failure 198Assert.Null(contentDisposition.FileNameStar.Value); 213Assert.Null(contentDisposition.FileNameStar.Value); 274Assert.Null(contentDisposition.FileNameStar.Value); // Decode failure 282Assert.Null(contentDisposition.FileNameStar.Value);
MediaTypeHeaderValueTest.cs (25)
107Assert.Null(mediaType.Charset.Value); 132Assert.Same(mediaType0.MediaType.Value, mediaType1.MediaType.Value); 143Assert.Same(mediaType0.MediaType.Value, mediaType1.MediaType.Value); 159Assert.Same(mediaType0.MediaType.Value, mediaType1.MediaType.Value); 165Assert.Same(pair0.Name.Value, pair1.Name.Value); 166Assert.Same(pair0.Value.Value, pair1.Value.Value); 178Assert.Same(mediaType0.MediaType.Value, mediaType1.MediaType.Value); 193Assert.Same(pair0.Name.Value, pair1.Name.Value); 194Assert.Same(pair0.Value.Value, pair1.Value.Value); 206Assert.Same(mediaType2.MediaType.Value, mediaType1.MediaType.Value); 216Assert.Same(pair2.Name.Value, pair1.Name.Value); 217Assert.Same(pair2.Value.Value, pair1.Value.Value); 240Assert.Null(mediaType.Charset.Value); 262Assert.Null(mediaType.Charset.Value);
NameValueHeaderValueTest.cs (22)
63Assert.Same(pair0.Name.Value, pair1.Name.Value); 64Assert.Null(pair0.Value.Value); 65Assert.Null(pair1.Value.Value); 70Assert.Null(pair1.Value.Value); 79Assert.Same(pair0.Name.Value, pair1.Name.Value); 80Assert.Null(pair0.Value.Value); 81Assert.Null(pair1.Value.Value); 88Assert.Null(pair1.Value.Value); 98Assert.Same(pair0.Name.Value, pair1.Name.Value); 99Assert.Same(pair0.Value.Value, pair1.Value.Value); 113Assert.Same(pair0.Name.Value, pair1.Name.Value); 114Assert.Same(pair0.Value.Value, pair1.Value.Value); 132Assert.Same(pair0.Name.Value, pair1.Name.Value); 133Assert.Same(pair0.Value.Value, pair1.Value.Value);