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