18 overrides of CanConvert
Microsoft.AspNetCore.Grpc.JsonTranscoding (3)
Internal\Json\JsonConverterFactoryForEnum.cs (1)
20
public override bool
CanConvert
(Type typeToConvert)
Internal\Json\JsonConverterFactoryForWellKnownTypes.cs (1)
21
public override bool
CanConvert
(Type typeToConvert)
Internal\Json\JsonConverterFactoryForWrappers.cs (1)
22
public override bool
CanConvert
(Type typeToConvert)
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Protocol\Converters\SumConverter.cs (1)
18
public override bool
CanConvert
(Type typeToConvert)
Microsoft.JSInterop (1)
Infrastructure\DotNetObjectReferenceJsonConverterFactory.cs (1)
19
public override bool
CanConvert
(Type typeToConvert)
System.Text.Json (13)
System\Text\Json\Serialization\Converters\Collection\IAsyncEnumerableConverterFactory.cs (1)
20
public override bool
CanConvert
(Type typeToConvert) => GetAsyncEnumerableInterface(typeToConvert) is not null;
System\Text\Json\Serialization\Converters\Collection\IEnumerableConverterFactory.cs (1)
28
public override bool
CanConvert
(Type typeToConvert)
System\Text\Json\Serialization\Converters\Collection\MemoryConverterFactory.cs (1)
13
public override bool
CanConvert
(Type typeToConvert)
System\Text\Json\Serialization\Converters\FSharp\FSharpTypeConverterFactory.cs (1)
21
public override bool
CanConvert
(Type typeToConvert) =>
System\Text\Json\Serialization\Converters\Node\JsonNodeConverterFactory.cs (1)
33
public override bool
CanConvert
(Type typeToConvert) => typeof(JsonNode).IsAssignableFrom(typeToConvert);
System\Text\Json\Serialization\Converters\Object\ObjectConverterFactory.cs (1)
29
public override bool
CanConvert
(Type typeToConvert)
System\Text\Json\Serialization\Converters\Value\EnumConverterFactory.cs (1)
17
public override bool
CanConvert
(Type type)
System\Text\Json\Serialization\Converters\Value\NullableConverterFactory.cs (1)
14
public override bool
CanConvert
(Type typeToConvert)
System\Text\Json\Serialization\Converters\Value\UnsupportedTypeConverterFactory.cs (1)
14
public override bool
CanConvert
(Type type)
System\Text\Json\Serialization\JsonConverterOfT.cs (1)
48
public override bool
CanConvert
(Type typeToConvert)
System\Text\Json\Serialization\JsonNumberEnumConverter.cs (1)
26
public override bool
CanConvert
(Type typeToConvert) => typeToConvert == typeof(TEnum);
System\Text\Json\Serialization\JsonStringEnumConverter.cs (2)
50
public sealed override bool
CanConvert
(Type typeToConvert) => typeToConvert == typeof(TEnum);
106
public sealed override bool
CanConvert
(Type typeToConvert)
6 references to CanConvert
Microsoft.AspNetCore.Components.Web (1)
src\Components\Shared\src\JsonSerialization\JsonConverterFactoryTypeInfoResolver.cs (1)
30
if (converter is not JsonConverterFactory factory || !factory.
CanConvert
(type))
System.Text.Json (5)
System\Text\Json\Serialization\JsonConverterFactory.cs (1)
37
Debug.Assert(
CanConvert
(typeToConvert));
System\Text\Json\Serialization\JsonSerializerOptions.Converters.cs (1)
76
if (item.
CanConvert
(typeToConvert))
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Converters.cs (3)
107
if (factory.
CanConvert
(typeToConvert))
202
if (!converter.
CanConvert
(typeToConvert))
205
if (underlyingType != null && converter.
CanConvert
(underlyingType))