Class JsonScalarTypes

Namespace
ProtoTest.Json
Assembly
ProtoTest.Json.dll

One definition of what counts as a scalar (non-structured) value, shared by the shape matcher, the GraphQL selection and literal writers so "is this a leaf" cannot drift between them.

public static class JsonScalarTypes
Inheritance
JsonScalarTypes
Inherited Members

Methods

IsNumeric(Type)

Whether the type is one of the numeric types JSON numbers surface as.

public static bool IsNumeric(Type type)

Parameters

type Type

Returns

bool

IsScalar(Type)

Whether the type is a scalar: a primitive, enum, string, decimal, date/time, GUID or URI.

public static bool IsScalar(Type type)

Parameters

type Type

Returns

bool