Implicit cast operator for JsonNumber can throw an exception, which is against the FDG:
https://docs.microsoft.com/en-us/dotnet/standard/design-guidelines/operator-overloads#conversion-operators. We need to consider if we want implicit cast operators for JsonNumber, JsonBoolean and JsonString at all.
JsonNumber number = float.PositiveInfinity; // throws
_Originally posted by @ahsonkhan in dotnet/corefx#39917 (comment)
Implicit cast operator for
JsonNumbercan throw an exception, which is against the FDG:https://docs.microsoft.com/en-us/dotnet/standard/design-guidelines/operator-overloads#conversion-operators. We need to consider if we want implicit cast operators for
JsonNumber,JsonBooleanandJsonStringat all._Originally posted by @ahsonkhan in dotnet/corefx#39917 (comment)