1 write to Value
System.Text.Json (1)
System\Text\Json\Document\JsonProperty.cs (1)
23Value = value;
139 references to Value
dotnet-openapi (1)
Commands\BaseCommand.cs (1)
469packageVersionsDictionary[packageVersion.Name] = packageVersion.Value.GetString();
dotnet-user-jwts (2)
Helpers\DevJwtCliHelpers.cs (2)
108if (profile.Value.TryGetProperty("commandName", out var commandName)) 112if (profile.Value.TryGetProperty("applicationUrl", out var applicationUrl))
Microsoft.AspNetCore.Authentication.OAuth (1)
MapAllClaimsAction.cs (1)
27var claimValue = pair.Value.ToString()!;
Microsoft.AspNetCore.Components.Web (84)
JSComponents\JSComponentInterop.cs (1)
97var parameterJsonValue = jsonProperty.Value;
WebEventData\ChangeEventArgsReader.cs (1)
21var value = property.Value;
WebEventData\ClipboardEventArgsReader.cs (1)
21eventArgs.Type = property.Value.GetString()!;
WebEventData\DragEventArgsReader.cs (8)
28eventArgs.DataTransfer = ReadDataTransfer(property.Value); 46dataTransfer.DropEffect = property.Value.GetString()!; 50dataTransfer.EffectAllowed = property.Value.GetString(); 54dataTransfer.Files = ReadStringArray(property.Value); 58var value = property.Value; 69dataTransfer.Types = ReadStringArray(property.Value); 87item.Kind = property.Value.GetString()!; 91item.Type = property.Value.GetString()!;
WebEventData\ErrorEventArgsReader.cs (5)
25eventArgs.Message = property.Value.GetString()!; 29eventArgs.Colno = property.Value.GetInt32(); 33eventArgs.Filename = property.Value.GetString()!; 37eventArgs.Lineno = property.Value.GetInt32(); 41eventArgs.Type = property.Value.GetString()!;
WebEventData\FocusEventArgsReader.cs (1)
21eventArgs.Type = property.Value.GetString()!;
WebEventData\KeyboardEventArgsReader.cs (10)
30eventArgs.Key = property.Value.GetString()!; 34eventArgs.Code = property.Value.GetString()!; 38eventArgs.Location = property.Value.GetSingle()!; 42eventArgs.Repeat = property.Value.GetBoolean(); 46eventArgs.CtrlKey = property.Value.GetBoolean(); 50eventArgs.AltKey = property.Value.GetBoolean(); 54eventArgs.ShiftKey = property.Value.GetBoolean(); 58eventArgs.MetaKey = property.Value.GetBoolean(); 62eventArgs.Type = property.Value.GetString()!; 66eventArgs.IsComposing = property.Value.GetBoolean();
WebEventData\MouseEventArgsReader.cs (18)
45eventArgs.Detail = property.Value.GetInt64(); 49eventArgs.ScreenX = property.Value.GetDouble(); 53eventArgs.ScreenY = property.Value.GetDouble(); 57eventArgs.ClientX = property.Value.GetDouble(); 61eventArgs.ClientY = property.Value.GetDouble(); 65eventArgs.OffsetX = property.Value.GetDouble(); 69eventArgs.OffsetY = property.Value.GetDouble(); 73eventArgs.PageX = property.Value.GetDouble(); 77eventArgs.PageY = property.Value.GetDouble(); 81eventArgs.MovementX = property.Value.GetDouble(); 85eventArgs.MovementY = property.Value.GetDouble(); 89eventArgs.Button = property.Value.GetInt64(); 93eventArgs.Buttons = property.Value.GetInt64(); 97eventArgs.CtrlKey = property.Value.GetBoolean(); 101eventArgs.ShiftKey = property.Value.GetBoolean(); 105eventArgs.AltKey = property.Value.GetBoolean(); 109eventArgs.MetaKey = property.Value.GetBoolean(); 113eventArgs.Type = property.Value.GetString()!;
WebEventData\PointerEventArgsReader.cs (8)
29eventArgs.PointerId = property.Value.GetInt64(); 33eventArgs.Width = property.Value.GetSingle(); 37eventArgs.Height = property.Value.GetSingle(); 41eventArgs.Pressure = property.Value.GetSingle(); 45eventArgs.TiltX = property.Value.GetSingle(); 49eventArgs.TiltY = property.Value.GetSingle(); 53eventArgs.PointerType = property.Value.GetString()!; 57eventArgs.IsPrimary = property.Value.GetBoolean();
WebEventData\ProgressEventArgReader.cs (4)
24eventArgs.LengthComputable = property.Value.GetBoolean(); 28eventArgs.Loaded = property.Value.GetInt64(); 32eventArgs.Total = property.Value.GetInt64(); 36eventArgs.Type = property.Value.GetString()!;
WebEventData\TouchEventArgsReader.cs (16)
36eventArgs.Detail = property.Value.GetInt64(); 40eventArgs.ChangedTouches = ReadTouchPointArray(property.Value); 44eventArgs.TargetTouches = ReadTouchPointArray(property.Value); 48eventArgs.Touches = ReadTouchPointArray(property.Value); 52eventArgs.CtrlKey = property.Value.GetBoolean(); 56eventArgs.ShiftKey = property.Value.GetBoolean(); 60eventArgs.AltKey = property.Value.GetBoolean(); 64eventArgs.MetaKey = property.Value.GetBoolean(); 68eventArgs.Type = property.Value.GetString()!; 98touchPoint.ClientX = property.Value.GetDouble(); 102touchPoint.ClientY = property.Value.GetDouble(); 106touchPoint.Identifier = property.Value.GetInt64(); 110touchPoint.PageX = property.Value.GetDouble(); 114touchPoint.PageY = property.Value.GetDouble(); 118touchPoint.ScreenX = property.Value.GetDouble(); 122touchPoint.ScreenY = property.Value.GetDouble();
WebEventData\WebEventDescriptorReader.cs (7)
26descriptor.EventHandlerId = property.Value.GetUInt64(); 30descriptor.EventName = property.Value.GetString()!; 34descriptor.EventFieldInfo = ReadEventFieldInfo(property.Value); 57eventFieldInfo.ComponentId = property.Value.GetInt32(); 61if (property.Value.ValueKind is JsonValueKind.True or JsonValueKind.False) 63eventFieldInfo.FieldValue = property.Value.GetBoolean(); 67eventFieldInfo.FieldValue = property.Value.GetString()!;
WebEventData\WheelEventArgsReader.cs (4)
25eventArgs.DeltaX = property.Value.GetDouble(); 29eventArgs.DeltaY = property.Value.GetDouble(); 33eventArgs.DeltaZ = property.Value.GetDouble(); 37eventArgs.DeltaMode = property.Value.GetInt64();
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (3)
ConverterTests\JsonElementComparer.cs (3)
86if (!Equals(px.Value, py.Value)) 147ComputeHashCode(property.Value, ref hash, depth + 1);
Microsoft.AspNetCore.Mvc.ViewFeatures (10)
Infrastructure\DefaultTempDataSerializer.cs (10)
32switch (item.Value.ValueKind) 36deserializedValue = item.Value.GetBoolean(); 40deserializedValue = item.Value.GetInt32(); 44if (item.Value.TryGetGuid(out var guid)) 48else if (item.Value.TryGetDateTime(out var dateTime)) 54deserializedValue = item.Value.GetString(); 63deserializedValue = DeserializeArray(item.Value); 67deserializedValue = DeserializeDictionaryEntry(item.Value); 71throw new InvalidOperationException(Resources.FormatTempData_CannotDeserializeType(item.Value.ValueKind)); 122dictionary[item.Name] = item.Value.GetString();
Microsoft.CodeAnalysis.Features (4)
PdbSourceDocument\SourceLinkMap.cs (4)
86if (rootEntry.Value.ValueKind != JsonValueKind.Object) 91foreach (var documentsEntry in rootEntry.Value.EnumerateObject()) 93if (documentsEntry.Value.ValueKind != JsonValueKind.String || 94!TryParseEntry(documentsEntry.Name, documentsEntry.Value.GetString()!, out var entry))
Microsoft.DotNet.Arcade.Sdk (1)
src\InstallDotNetCore.cs (1)
225foreach (var version in token.Value.EnumerateArray())
Microsoft.Extensions.Configuration.Json (1)
JsonConfigurationFileParser.cs (1)
51VisitValue(property.Value);
System.Text.Json (22)
System\Text\Json\Document\JsonElement.cs (4)
1353if (!DeepEquals(prop1.Value, prop2.Value)) 1382values.Enqueue(prop2.Value); 1397if (!exists || !values.TryDequeue(out JsonElement value) || !DeepEquals(prop.Value, value))
System\Text\Json\Document\JsonProperty.cs (11)
29public string Name => _name ?? Value.GetPropertyName(); 68return Value.TextEqualsHelper(utf8Text, isPropertyName: true, shouldUnescape: true); 88return Value.TextEqualsHelper(text, isPropertyName: true); 93return Value.TextEqualsHelper(utf8Text, isPropertyName: true, shouldUnescape: false); 96internal bool NameIsEscaped => Value.ValueIsEscapedHelper(isPropertyName: true); 97internal ReadOnlySpan<byte> NameSpan => Value.GetPropertyNameRaw(); 110/// This <see cref="Value"/>'s <see cref="JsonElement.ValueKind"/> would result in an invalid JSON. 124Value.WritePropertyNameTo(writer); 131Value.WriteTo(writer); 145return Value.GetPropertyRawText(); 150=> Value.ValueKind == JsonValueKind.Undefined ? "<Undefined>" : $"\"{ToString()}\"";
System\Text\Json\Nodes\JsonObject.IDictionary.cs (1)
231JsonNode? node = JsonNodeConverter.Create(jElementProperty.Value, Options);
System\Text\Json\Serialization\JsonSerializer.Read.HandleMetadata.cs (6)
376if (property.Value.ValueKind != JsonValueKind.String) 378ThrowHelper.ThrowJsonException_MetadataValueWasNotString(property.Value.ValueKind); 382state.ReferenceResolver.AddReference(property.Value.GetString()!, boxedElement); 399if (property.Value.ValueKind != JsonValueKind.String) 401ThrowHelper.ThrowJsonException_MetadataValueWasNotString(property.Value.ValueKind); 404referenceValue = state.ReferenceResolver.ResolveReference(property.Value.GetString()!);
Templates.Blazor.Tests (2)
src\ProjectTemplates\Shared\Project.cs (2)
333if (actualProfile.Value.GetProperty("commandName").GetString() == "Project") 335var applicationUrl = actualProfile.Value.GetProperty("applicationUrl");
Templates.Blazor.WebAssembly.Auth.Tests (2)
src\ProjectTemplates\Shared\Project.cs (2)
333if (actualProfile.Value.GetProperty("commandName").GetString() == "Project") 335var applicationUrl = actualProfile.Value.GetProperty("applicationUrl");
Templates.Blazor.WebAssembly.Tests (2)
src\ProjectTemplates\Shared\Project.cs (2)
333if (actualProfile.Value.GetProperty("commandName").GetString() == "Project") 335var applicationUrl = actualProfile.Value.GetProperty("applicationUrl");
Templates.Mvc.Tests (2)
src\ProjectTemplates\Shared\Project.cs (2)
333if (actualProfile.Value.GetProperty("commandName").GetString() == "Project") 335var applicationUrl = actualProfile.Value.GetProperty("applicationUrl");
Templates.Tests (2)
src\ProjectTemplates\Shared\Project.cs (2)
333if (actualProfile.Value.GetProperty("commandName").GetString() == "Project") 335var applicationUrl = actualProfile.Value.GetProperty("applicationUrl");