API Reference
Class
CommentConverter
Converts the comment field in the JSON response to a string. In some cases the comment field is an array of strings, so this converter will join them together.
Inheritance
- JsonConverter<String>
- CommentConverter
Constructors
public CommentConverter() #Methods
public override String Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) #Returns:
StringParameters
- reader System.Text.Json.Utf8JsonReader@
- typeToConvert System.Type
- options System.Text.Json.JsonSerializerOptions
public override Void Write(Utf8JsonWriter writer, String value, JsonSerializerOptions options) #Returns:
VoidParameters
- writer System.Text.Json.Utf8JsonWriter
- value System.String
- options System.Text.Json.JsonSerializerOptions
Inherited Methods
public override Boolean CanConvert(Type typeToConvert) #Returns:
BooleanInherited from 0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]
Parameters
- typeToConvert Type
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object
public override String ReadAsPropertyName(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) #Returns:
StringInherited from 0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]
Parameters
- reader Utf8JsonReader
- typeToConvert Type
- options JsonSerializerOptions
public override Void WriteAsPropertyName(Utf8JsonWriter writer, String value, JsonSerializerOptions options) #Returns:
VoidInherited from 0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]
Parameters
- writer Utf8JsonWriter
- value String
- options JsonSerializerOptions