8 instantiations of ConversionResult
Microsoft.AspNetCore.JsonPatch (8)
Internal\ConversionResultProvider.cs (8)
25
return new
ConversionResult
(IsNullableType(typeToConvertTo), null);
30
return new
ConversionResult
(true, value);
39
return new
ConversionResult
(true, deserialized);
48
return new
ConversionResult
(true, deserialized);
53
return new
ConversionResult
(canBeConverted: false, convertedInstance: null);
63
return new
ConversionResult
(canBeConverted: true, convertedInstance: null);
73
return new
ConversionResult
(true, deserialized);
77
return new
ConversionResult
(canBeConverted: false, convertedInstance: null);
9 references to ConversionResult
Microsoft.AspNetCore.JsonPatch (9)
Adapters\ObjectAdapter.cs (1)
187
var
copyResult = ConversionResultProvider.CopyTo(propertyValue, propertyValue?.GetType());
Internal\ConversionResultProvider.cs (3)
16
public static
ConversionResult
ConvertTo(object value, Type typeToConvertTo)
21
internal static
ConversionResult
ConvertTo(object value, Type typeToConvertTo, IContractResolver contractResolver)
58
public static
ConversionResult
CopyTo(object value, Type typeToConvertTo)
Internal\DictionaryAdapterOfTU.cs (2)
213
var
conversionResult = ConversionResultProvider.ConvertTo(key, typeof(TKey));
235
var
conversionResult = ConversionResultProvider.ConvertTo(value, typeof(TValue), contractResolver);
Internal\DynamicObjectAdapter.cs (1)
244
var
conversionResult = ConversionResultProvider.ConvertTo(value, propertyType, contractResolver);
Internal\ListAdapter.cs (1)
254
var
conversionResult = ConversionResultProvider.ConvertTo(originalValue, listTypeArgument, contractResolver);
Internal\PocoAdapter.cs (1)
233
var
conversionResult = ConversionResultProvider.ConvertTo(value, propertyType, contractResolver);