103 references to GetString
Aspire.Dashboard (2)
Components\Dialogs\TextVisualizerDialog.razor.cs (2)
211writer.WritePropertyName(reader.GetString()!); 214writer.WriteStringValue(reader.GetString());
Aspire.Hosting.Azure (3)
Provisioning\Provisioners\AzureProvisioner.cs (3)
536var header = reader.GetString(); 540oid = reader.GetString()!; 549upn = reader.GetString()!;
Microsoft.AspNetCore.Components.Server (2)
src\Components\Shared\src\ElementReferenceJsonConverter.cs (2)
30id = reader.GetString(); 34throw new JsonException($"Unexpected JSON property '{reader.GetString()}'.");
Microsoft.AspNetCore.Components.WebAssembly (2)
src\Components\Shared\src\ElementReferenceJsonConverter.cs (2)
30id = reader.GetString(); 34throw new JsonException($"Unexpected JSON property '{reader.GetString()}'.");
Microsoft.AspNetCore.Components.WebView (2)
src\Components\Shared\src\ElementReferenceJsonConverter.cs (2)
30id = reader.GetString(); 34throw new JsonException($"Unexpected JSON property '{reader.GetString()}'.");
Microsoft.AspNetCore.Grpc.JsonTranscoding (9)
Internal\Json\DurationConverter.cs (1)
25var (seconds, nanos) = Legacy.ParseDuration(reader.GetString()!);
Internal\Json\EnumConverter.cs (1)
30var value = reader.GetString()!;
Internal\Json\FieldMaskConverter.cs (1)
30var jsonPaths = reader.GetString()!.Split(',', StringSplitOptions.RemoveEmptyEntries);
Internal\Json\Int64Converter.cs (1)
20return long.Parse(reader.GetString()!, CultureInfo.InvariantCulture);
Internal\Json\NullValueConverter.cs (2)
20if (reader.GetString() == "NULL_VALUE") 26throw new InvalidOperationException($"Invalid enum value: {reader.GetString()} for enum type: google.protobuf.NullValue");
Internal\Json\TimestampConverter.cs (1)
24var (seconds, nanos) = Legacy.ParseTimestamp(reader.GetString()!);
Internal\Json\UInt64Converter.cs (1)
21return ulong.Parse(reader.GetString()!, CultureInfo.InvariantCulture);
Internal\Json\ValueConverter.cs (1)
42fields[Value.StringValueFieldNumber].Accessor.SetValue(message, reader.GetString()!);
Microsoft.AspNetCore.Http.Connections.Common (2)
NegotiateProtocol.cs (1)
299availableTransport.TransferFormats.Add(reader.GetString()!);
src\SignalR\common\Shared\SystemTextJsonExtensions.cs (1)
81return reader.GetString()!;
Microsoft.AspNetCore.Http.Extensions.Tests (2)
RequestDelegateGenerator\SharedTypes.cs (2)
995var property = reader.GetString()!; 1004todo.Name = reader.GetString();
Microsoft.AspNetCore.Http.Microbenchmarks (2)
src\Http\Http.Extensions\test\RequestDelegateGenerator\SharedTypes.cs (2)
995var property = reader.GetString()!; 1004todo.Name = reader.GetString();
Microsoft.AspNetCore.Mvc.Core.Test (2)
Formatters\SystemTextJsonInputFormatterTest.cs (2)
225return short.Parse(reader.GetString(), CultureInfo.InvariantCulture); 238return DateTime.Parse(reader.GetString(), CultureInfo.InvariantCulture);
Microsoft.AspNetCore.OpenApi (11)
Schemas\OpenApiJsonSchema.cs (1)
31var propertyName = reader.GetString() ?? throw new JsonException("Encountered unexpected missing property name.");
Schemas\OpenApiJsonSchema.Helpers.cs (10)
76var key = reader.GetString()!; 132return new OpenApiString(reader.GetString()); 159var key = reader.GetString()!; 204var type = reader.GetString(); 231schema.Description = reader.GetString(); 235schema.Format = reader.GetString(); 273var pattern = reader.GetString(); 299var discriminator = reader.GetString(); 316schema.Annotations.Add(OpenApiConstants.SchemaId, reader.GetString()); 327schema.Reference = new OpenApiReference { Type = ReferenceType.Schema, Id = reader.GetString() };
Microsoft.AspNetCore.SignalR.Common (1)
src\SignalR\common\Shared\SystemTextJsonExtensions.cs (1)
81return reader.GetString()!;
Microsoft.AspNetCore.SignalR.Protocols.Json (6)
Protocol\JsonHubProtocol.cs (5)
186newStreamIds.Add(reader.GetString() ?? throw new InvalidDataException($"Null value for '{StreamIdsPropertyName}' is not valid.")); 204target = binder.GetTarget(reader.ValueSpan) ?? reader.GetString(); 208target = reader.GetString(); 495var propertyName = reader.GetString()!; 504headers[propertyName] = reader.GetString()!;
src\SignalR\common\Shared\SystemTextJsonExtensions.cs (1)
81return reader.GetString()!;
Microsoft.AspNetCore.SignalR.StackExchangeRedis (1)
src\SignalR\common\Shared\SystemTextJsonExtensions.cs (1)
81return reader.GetString()!;
Microsoft.CodeAnalysis.LanguageServer.Protocol (17)
Protocol\Converters\DocumentUriConverter.cs (1)
17=> new(reader.GetString());
Protocol\Converters\FormattingOptionsConverter.cs (2)
77var propertyName = reader.GetString(); 105JsonTokenType.String => reader.GetString(),
Protocol\Converters\NaturalObjectConverter.cs (1)
55return reader.GetString();
Protocol\Converters\StringEnumConverter.cs (2)
42return CreateEnum(reader.GetString()!); 49throw new JsonException(string.Format(CultureInfo.InvariantCulture, LanguageServerProtocolResources.StringEnumSerializationError, reader.GetString()));
Protocol\Converters\TextDocumentSyncConverter.cs (2)
33var value = reader.GetString()!; 41throw new JsonException(string.Format(CultureInfo.InvariantCulture, LanguageServerProtocolResources.TextDocumentSyncSerializationError, reader.GetString()));
Protocol\Internal\Converters\ClassifiedTextElementConverter.cs (2)
29var propertyName = reader.GetString(); 44if (reader.GetString() != nameof(ClassifiedTextElement))
Protocol\Internal\Converters\ContainerElementConverter.cs (2)
35var propertyName = reader.GetString(); 53if (reader.GetString() != nameof(ContainerElement))
Protocol\Internal\Converters\ImageElementConverter.cs (3)
33var propertyName = reader.GetString(); 41automationName = reader.GetString(); 44if (reader.GetString() != nameof(ImageElement))
Protocol\Internal\Converters\ObjectContentConverter.cs (1)
70return reader.GetString();
Protocol\Internal\Converters\RegexConverter.cs (1)
20return new Regex(reader.GetString(), RegexOptions.Compiled | RegexOptions.ECMAScript, matchTimeout: TimeSpan.FromMilliseconds(1000));
Microsoft.Extensions.AI.Abstractions (2)
ChatCompletion\ChatFinishReason.cs (1)
86new(reader.GetString()!);
ChatCompletion\ChatRole.cs (1)
94new(reader.GetString()!);
Microsoft.Extensions.AI.Abstractions.Tests (1)
test\Shared\JsonSchemaExporter\TestTypes.cs (1)
968=> int.Parse(reader.GetString()!);
Microsoft.Extensions.DependencyModel (16)
DependencyContextJsonReader.cs (12)
145switch (reader.GetString()) 286switch (reader.GetString()) 355string? targetName = reader.GetString(); 378string? targetLibraryName = reader.GetString(); 407switch (reader.GetString()) 484string? libraryName = reader.GetString(); 511string? path = reader.GetString(); 551string? runtimePath = reader.GetString(); 602string? path = reader.GetString(); 642string? libraryName = reader.GetString(); 670switch (reader.GetString()) 722string? runtime = reader.GetString();
Utf8JsonReaderExtensions.cs (4)
24name = reader.GetString(); 30value = reader.GetString(); 78items.Add(reader.GetString()); 102return reader.GetString();
Microsoft.JSInterop (5)
Implementation\JSObjectReferenceJsonWorker.cs (1)
38throw new JsonException($"Unexpected JSON property {reader.GetString()}.");
Infrastructure\ByteArrayJsonConverter.cs (1)
47throw new JsonException($"Unexpected JSON Property {reader.GetString()}.");
Infrastructure\DotNetObjectReferenceJsonConverter.cs (1)
37throw new JsonException($"Unexpected JSON property {reader.GetString()}.");
Infrastructure\JSStreamReferenceJsonConverter.cs (1)
45throw new JsonException($"Unexpected JSON property {reader.GetString()}.");
JSRuntime.cs (1)
253var exceptionText = jsonReader.GetString() ?? string.Empty;
Microsoft.ML.Tokenizers (3)
Utils\StringSpanOrdinalKey.cs (3)
137new StringSpanOrdinalKey(reader.GetString()!); 142public override StringSpanOrdinalKey Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) => new StringSpanOrdinalKey(reader.GetString()!); 160var key = reader.GetString();
Shared.Tests (1)
JsonSchemaExporter\TestTypes.cs (1)
968=> int.Parse(reader.GetString()!);
System.Text.Json (11)
System\Text\Json\Reader\Utf8JsonReader.TryGet.cs (2)
56/// Unlike <see cref="GetString"/>, this method does not support <see cref="JsonTokenType.Null"/>. 120/// Unlike <see cref="GetString"/>, this method does not support <see cref="JsonTokenType.Null"/>.
System\Text\Json\Serialization\Converters\Collection\JsonDictionaryConverter.cs (1)
317string unescapedPropertyNameAsString = reader.GetString()!;
System\Text\Json\Serialization\Converters\Value\StringConverter.cs (2)
14return reader.GetString(); 33return reader.GetString()!;
System\Text\Json\Serialization\Converters\Value\UriConverter.cs (1)
36string? uriString = reader.GetString();
System\Text\Json\Serialization\JsonSerializer.Read.HandleMetadata.cs (3)
224state.ReferenceId = reader.GetString(); 238state.ReferenceId = reader.GetString(); 247state.PolymorphicTypeDiscriminator = reader.GetString();
System\Text\Json\ThrowHelper.Serialization.cs (2)
725state.Current.JsonPropertyNameAsString = reader.GetString(); 757string propertyNameAsString = reader.GetString()!;