Class SystemTextStringTypeConverter
OptimaJet.Workflow.Core.Designer.SystemTextStringTypeConverter
Provides a JsonConverter<T> that serializes Type values as URL-encoded names produced by ParsedType.GetFriendlyName(Type) and deserializes those names.
Namespace: OptimaJet.Workflow.Core.Designer
public class SystemTextStringTypeConverter : JsonConverter<Type?>Type Hierarchy
- JsonConverter
- JsonConverter<Type>
- SystemTextStringTypeConverter Current type
- JsonConverter<Type>
Methods
public override Type? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) #Reads a JSON string containing a URL-encoded type name in the syntax accepted by ParsedType.Parse(string) and resolves it to a Type.
Parameters
Name
Type
Description
Returns
Type
Description
TypeExceptions
Type
Description
JsonExceptionThe current Utf8JsonReader.TokenType is neither JsonTokenType.String nor JsonTokenType.Null, or the string does not identify a resolvable Type.
public override void Write(Utf8JsonWriter writer, Type? value, JsonSerializerOptions options) #Writes a Type as a JSON string containing the URL-encoded result of ParsedType.GetFriendlyName(Type), or writes JSON null for a null value.
Parameters
Name
Type
Description