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