JsonSerializerSettingsExtensions
A static class in Root.Township, Alta.Console.
Adds Nullable versions of struct JSON converters to a serializer settings object. Used by the websocket console's JSON settings.
- Listed in Console, logging and analytics
- Attributes
Extension
Methods
| Member | What it is |
|---|---|
static void AddNullableConverters(JsonSerializerSettings settings) | For each converter of a struct type already in the settings, adds a NullableStructSerializer for that struct. |
3 private and internal methods
| Member | What it is |
|---|---|
private static JsonConverter CreateNullableWrapper(Type type) | Creates a NullableStructSerializer for the given struct type. |
private static bool IsJsonConverterOfT(Type type) | True if the type is the generic JsonConverter<T>. |
private static bool TryGetJsonConverterStruct(Type type, out Type structType) | Gets the struct type a converter handles, if its base is JsonConverter<T> with a value type. |