128 references to Encode
Microsoft.AspNetCore.Components (2)
BindConverter.cs (2)
1817builder.Append(JsonEncodedText.Encode(elementFormatter(value[0], culture)?.ToString() ?? string.Empty).Value); 1823builder.Append(JsonEncodedText.Encode(elementFormatter(value[i], culture)?.ToString() ?? string.Empty).Value);
Microsoft.AspNetCore.Components.Server (1)
src\Components\Shared\src\ElementReferenceJsonConverter.cs (1)
11private static readonly JsonEncodedText IdProperty = JsonEncodedText.Encode("__internalId");
Microsoft.AspNetCore.Components.Web (81)
WebEventData\ChangeEventArgsReader.cs (1)
12private static readonly JsonEncodedText ValueKey = JsonEncodedText.Encode("value");
WebEventData\ClipboardEventArgsReader.cs (1)
12private static readonly JsonEncodedText TypeKey = JsonEncodedText.Encode("type");
WebEventData\DragEventArgsReader.cs (8)
12private static readonly JsonEncodedText DataTransfer = JsonEncodedText.Encode("dataTransfer"); 13private static readonly JsonEncodedText DropEffect = JsonEncodedText.Encode("dropEffect"); 14private static readonly JsonEncodedText EffectAllowed = JsonEncodedText.Encode("effectAllowed"); 15private static readonly JsonEncodedText Files = JsonEncodedText.Encode("files"); 16private static readonly JsonEncodedText Items = JsonEncodedText.Encode("items"); 17private static readonly JsonEncodedText Types = JsonEncodedText.Encode("types"); 18private static readonly JsonEncodedText Kind = JsonEncodedText.Encode("kind"); 19private static readonly JsonEncodedText Type = JsonEncodedText.Encode("type");
WebEventData\ErrorEventArgsReader.cs (5)
12private static readonly JsonEncodedText Message = JsonEncodedText.Encode("message"); 13private static readonly JsonEncodedText Colno = JsonEncodedText.Encode("colno"); 14private static readonly JsonEncodedText Filename = JsonEncodedText.Encode("filename"); 15private static readonly JsonEncodedText Lineno = JsonEncodedText.Encode("lineno"); 16private static readonly JsonEncodedText Type = JsonEncodedText.Encode("type");
WebEventData\FocusEventArgsReader.cs (1)
12private static readonly JsonEncodedText Type = JsonEncodedText.Encode("type");
WebEventData\KeyboardEventArgsReader.cs (10)
12private static readonly JsonEncodedText Key = JsonEncodedText.Encode("key"); 13private static readonly JsonEncodedText Code = JsonEncodedText.Encode("code"); 14private static readonly JsonEncodedText Location = JsonEncodedText.Encode("location"); 15private static readonly JsonEncodedText Repeat = JsonEncodedText.Encode("repeat"); 16private static readonly JsonEncodedText CtrlKey = JsonEncodedText.Encode("ctrlKey"); 17private static readonly JsonEncodedText ShiftKey = JsonEncodedText.Encode("shiftKey"); 18private static readonly JsonEncodedText AltKey = JsonEncodedText.Encode("altKey"); 19private static readonly JsonEncodedText MetaKey = JsonEncodedText.Encode("metaKey"); 20private static readonly JsonEncodedText Type = JsonEncodedText.Encode("type"); 21private static readonly JsonEncodedText IsComposing = JsonEncodedText.Encode("isComposing");
WebEventData\MouseEventArgsReader.cs (18)
12private static readonly JsonEncodedText Detail = JsonEncodedText.Encode("detail"); 13private static readonly JsonEncodedText ScreenX = JsonEncodedText.Encode("screenX"); 14private static readonly JsonEncodedText ScreenY = JsonEncodedText.Encode("screenY"); 15private static readonly JsonEncodedText ClientX = JsonEncodedText.Encode("clientX"); 16private static readonly JsonEncodedText ClientY = JsonEncodedText.Encode("clientY"); 17private static readonly JsonEncodedText OffsetX = JsonEncodedText.Encode("offsetX"); 18private static readonly JsonEncodedText OffsetY = JsonEncodedText.Encode("offsetY"); 19private static readonly JsonEncodedText PageX = JsonEncodedText.Encode("pageX"); 20private static readonly JsonEncodedText PageY = JsonEncodedText.Encode("pageY"); 21private static readonly JsonEncodedText MovementX = JsonEncodedText.Encode("movementX"); 22private static readonly JsonEncodedText MovementY = JsonEncodedText.Encode("movementY"); 23private static readonly JsonEncodedText Button = JsonEncodedText.Encode("button"); 24private static readonly JsonEncodedText Buttons = JsonEncodedText.Encode("buttons"); 25private static readonly JsonEncodedText CtrlKey = JsonEncodedText.Encode("ctrlKey"); 26private static readonly JsonEncodedText ShiftKey = JsonEncodedText.Encode("shiftKey"); 27private static readonly JsonEncodedText AltKey = JsonEncodedText.Encode("altKey"); 28private static readonly JsonEncodedText MetaKey = JsonEncodedText.Encode("metaKey"); 29private static readonly JsonEncodedText Type = JsonEncodedText.Encode("type");
WebEventData\PointerEventArgsReader.cs (8)
12private static readonly JsonEncodedText PointerId = JsonEncodedText.Encode("pointerId"); 13private static readonly JsonEncodedText Width = JsonEncodedText.Encode("width"); 14private static readonly JsonEncodedText Height = JsonEncodedText.Encode("height"); 15private static readonly JsonEncodedText Pressure = JsonEncodedText.Encode("pressure"); 16private static readonly JsonEncodedText TiltX = JsonEncodedText.Encode("tiltX"); 17private static readonly JsonEncodedText TiltY = JsonEncodedText.Encode("tiltY"); 18private static readonly JsonEncodedText PointerType = JsonEncodedText.Encode("pointerType"); 19private static readonly JsonEncodedText IsPrimary = JsonEncodedText.Encode("isPrimary");
WebEventData\ProgressEventArgReader.cs (4)
12private static readonly JsonEncodedText LengthComputable = JsonEncodedText.Encode("lengthComputable"); 13private static readonly JsonEncodedText Loaded = JsonEncodedText.Encode("loaded"); 14private static readonly JsonEncodedText Total = JsonEncodedText.Encode("total"); 15private static readonly JsonEncodedText Type = JsonEncodedText.Encode("type");
WebEventData\TouchEventArgsReader.cs (16)
12private static readonly JsonEncodedText Detail = JsonEncodedText.Encode("detail"); 13private static readonly JsonEncodedText ClientX = JsonEncodedText.Encode("clientX"); 14private static readonly JsonEncodedText ClientY = JsonEncodedText.Encode("clientY"); 15private static readonly JsonEncodedText PageX = JsonEncodedText.Encode("pageX"); 16private static readonly JsonEncodedText PageY = JsonEncodedText.Encode("pageY"); 17private static readonly JsonEncodedText ScreenX = JsonEncodedText.Encode("screenX"); 18private static readonly JsonEncodedText ScreenY = JsonEncodedText.Encode("screenY"); 19private static readonly JsonEncodedText CtrlKey = JsonEncodedText.Encode("ctrlKey"); 20private static readonly JsonEncodedText ShiftKey = JsonEncodedText.Encode("shiftKey"); 21private static readonly JsonEncodedText AltKey = JsonEncodedText.Encode("altKey"); 22private static readonly JsonEncodedText MetaKey = JsonEncodedText.Encode("metaKey"); 23private static readonly JsonEncodedText Type = JsonEncodedText.Encode("type"); 24private static readonly JsonEncodedText Identifier = JsonEncodedText.Encode("identifier"); 25private static readonly JsonEncodedText ChangedTouches = JsonEncodedText.Encode("changedTouches"); 26private static readonly JsonEncodedText TargetTouches = JsonEncodedText.Encode("targetTouches"); 27private static readonly JsonEncodedText Touches = JsonEncodedText.Encode("touches");
WebEventData\WebEventDescriptorReader.cs (5)
13private static readonly JsonEncodedText EventHandlerIdKey = JsonEncodedText.Encode("eventHandlerId"); 14private static readonly JsonEncodedText EventNameKey = JsonEncodedText.Encode("eventName"); 15private static readonly JsonEncodedText EventFieldInfoKey = JsonEncodedText.Encode("eventFieldInfo"); 16private static readonly JsonEncodedText ComponentIdKey = JsonEncodedText.Encode("componentId"); 17private static readonly JsonEncodedText FieldValueKey = JsonEncodedText.Encode("fieldValue");
WebEventData\WheelEventArgsReader.cs (4)
12private static readonly JsonEncodedText DeltaX = JsonEncodedText.Encode("deltaX"); 13private static readonly JsonEncodedText DeltaY = JsonEncodedText.Encode("deltaY"); 14private static readonly JsonEncodedText DeltaZ = JsonEncodedText.Encode("deltaZ"); 15private static readonly JsonEncodedText DeltaMode = JsonEncodedText.Encode("deltaMode");
Microsoft.AspNetCore.Components.WebAssembly (1)
src\Components\Shared\src\ElementReferenceJsonConverter.cs (1)
11private static readonly JsonEncodedText IdProperty = JsonEncodedText.Encode("__internalId");
Microsoft.AspNetCore.Components.WebView (1)
src\Components\Shared\src\ElementReferenceJsonConverter.cs (1)
11private static readonly JsonEncodedText IdProperty = JsonEncodedText.Encode("__internalId");
Microsoft.AspNetCore.Http.Abstractions.Tests (5)
ProblemDetailsJsonConverterTest.cs (5)
175var expected = $"{{\"type\":\"{JsonEncodedText.Encode(value.Type)}\",\"title\":\"{value.Title}\",\"status\":{value.Status},\"detail\":\"{value.Detail}\",\"instance\":\"{JsonEncodedText.Encode(value.Instance)}\",\"traceId\":\"{traceId}\",\"some-data\":[\"value1\",\"value2\"]}}"; 199var expected = $"{{\"type\":\"{JsonEncodedText.Encode(value.Type)}\",\"title\":\"{value.Title}\",\"status\":{value.Status}}}"; 230var expected = $"{{\"type\":\"{JsonEncodedText.Encode(value.Type)}\",\"title\":\"{value.Title}\",\"status\":{value.Status},\"detail\":\"{value.Detail}\",\"instance\":\"{JsonEncodedText.Encode(value.Instance)}\",\"traceId\":null,\"some-data\":[\"value1\",\"value2\"]}}";
Microsoft.AspNetCore.Http.Connections.Common (10)
NegotiateProtocol.cs (10)
20private static readonly JsonEncodedText ConnectionIdPropertyNameBytes = JsonEncodedText.Encode(ConnectionIdPropertyName); 22private static readonly JsonEncodedText ConnectionTokenPropertyNameBytes = JsonEncodedText.Encode(ConnectionTokenPropertyName); 24private static readonly JsonEncodedText UrlPropertyNameBytes = JsonEncodedText.Encode(UrlPropertyName); 26private static readonly JsonEncodedText AccessTokenPropertyNameBytes = JsonEncodedText.Encode(AccessTokenPropertyName); 28private static readonly JsonEncodedText AvailableTransportsPropertyNameBytes = JsonEncodedText.Encode(AvailableTransportsPropertyName); 30private static readonly JsonEncodedText TransportPropertyNameBytes = JsonEncodedText.Encode(TransportPropertyName); 32private static readonly JsonEncodedText TransferFormatsPropertyNameBytes = JsonEncodedText.Encode(TransferFormatsPropertyName); 34private static readonly JsonEncodedText ErrorPropertyNameBytes = JsonEncodedText.Encode(ErrorPropertyName); 36private static readonly JsonEncodedText NegotiateVersionPropertyNameBytes = JsonEncodedText.Encode(NegotiateVersionPropertyName); 38private static readonly JsonEncodedText StatefulReconnectPropertyNameBytes = JsonEncodedText.Encode(StatefulReconnectPropertyName);
Microsoft.AspNetCore.SignalR.Common (4)
Protocol\HandshakeProtocol.cs (4)
21private static readonly JsonEncodedText ProtocolPropertyNameBytes = JsonEncodedText.Encode(ProtocolPropertyName); 23private static readonly JsonEncodedText ProtocolVersionPropertyNameBytes = JsonEncodedText.Encode(ProtocolVersionPropertyName); 25private static readonly JsonEncodedText ErrorPropertyNameBytes = JsonEncodedText.Encode(ErrorPropertyName); 27private static readonly JsonEncodedText TypePropertyNameBytes = JsonEncodedText.Encode(TypePropertyName);
Microsoft.AspNetCore.SignalR.Protocols.Json (11)
Protocol\JsonHubProtocol.cs (11)
27private static readonly JsonEncodedText ResultPropertyNameBytes = JsonEncodedText.Encode(ResultPropertyName); 29private static readonly JsonEncodedText ItemPropertyNameBytes = JsonEncodedText.Encode(ItemPropertyName); 31private static readonly JsonEncodedText InvocationIdPropertyNameBytes = JsonEncodedText.Encode(InvocationIdPropertyName); 33private static readonly JsonEncodedText StreamIdsPropertyNameBytes = JsonEncodedText.Encode(StreamIdsPropertyName); 35private static readonly JsonEncodedText TypePropertyNameBytes = JsonEncodedText.Encode(TypePropertyName); 37private static readonly JsonEncodedText ErrorPropertyNameBytes = JsonEncodedText.Encode(ErrorPropertyName); 39private static readonly JsonEncodedText AllowReconnectPropertyNameBytes = JsonEncodedText.Encode(AllowReconnectPropertyName); 41private static readonly JsonEncodedText TargetPropertyNameBytes = JsonEncodedText.Encode(TargetPropertyName); 43private static readonly JsonEncodedText ArgumentsPropertyNameBytes = JsonEncodedText.Encode(ArgumentsPropertyName); 45private static readonly JsonEncodedText HeadersPropertyNameBytes = JsonEncodedText.Encode(HeadersPropertyName); 47private static readonly JsonEncodedText SequenceIdPropertyNameBytes = JsonEncodedText.Encode(SequenceIdPropertyName);
Microsoft.JSInterop (5)
Implementation\JSObjectReferenceJsonWorker.cs (1)
16internal static readonly JsonEncodedText JSObjectIdKey = JsonEncodedText.Encode("__jsObjectId");
Infrastructure\ByteArrayJsonConverter.cs (1)
14internal static readonly JsonEncodedText ByteArrayRefKey = JsonEncodedText.Encode("__byte[]");
Infrastructure\DotNetDispatcher.cs (1)
27internal static readonly JsonEncodedText DotNetObjectRefKey = JsonEncodedText.Encode("__dotNetObject");
Infrastructure\DotNetStreamReferenceJsonConverter.cs (1)
11private static readonly JsonEncodedText DotNetStreamRefKey = JsonEncodedText.Encode("__dotNetStream");
Infrastructure\JSStreamReferenceJsonConverter.cs (1)
12private static readonly JsonEncodedText _jsStreamReferenceLengthKey = JsonEncodedText.Encode("__jsStreamReferenceLength");
System.Text.Json (7)
System\Text\Json\Serialization\Converters\Value\EnumConverter.cs (2)
151formatted = JsonEncodedText.Encode(stringValue, options.Encoder); 212formatted = JsonEncodedText.Encode(stringValue, options.Encoder);
System\Text\Json\Serialization\JsonSerializer.Write.HandleMetadata.cs (4)
12internal static readonly JsonEncodedText s_metadataId = JsonEncodedText.Encode(IdPropertyName, encoder: null); 13internal static readonly JsonEncodedText s_metadataRef = JsonEncodedText.Encode(RefPropertyName, encoder: null); 14internal static readonly JsonEncodedText s_metadataType = JsonEncodedText.Encode(TypePropertyName, encoder: null); 15internal static readonly JsonEncodedText s_metadataValues = JsonEncodedText.Encode(ValuesPropertyName, encoder: null);
System\Text\Json\Serialization\Metadata\PolymorphicTypeResolver.cs (1)
92CustomTypeDiscriminatorPropertyNameJsonEncoded = JsonEncodedText.Encode(propertyName, options.Encoder);