Table of Contents

Class StringArrayConverter

Namespace
Supabase.Realtime.Converters
Assembly
Supabase.Realtime.dll

An string array converter that specifically parses Postgrest styled arrays {big,string,array} and [1,2,3] from strings into a List<T>.

public class StringArrayConverter : JsonConverter
Inheritance
JsonConverter
StringArrayConverter
Inherited Members
Extension Methods

Properties

CanRead

Gets a value indicating whether this Newtonsoft.Json.JsonConverter can read JSON.

public override bool CanRead { get; }

Property Value

bool

true if this Newtonsoft.Json.JsonConverter can read JSON; otherwise, false.

CanWrite

Gets a value indicating whether this Newtonsoft.Json.JsonConverter can write JSON.

public override bool CanWrite { get; }

Property Value

bool

true if this Newtonsoft.Json.JsonConverter can write JSON; otherwise, false.

Methods

CanConvert(Type)

Determines whether this instance can convert the specified object type.

public override bool CanConvert(Type objectType)

Parameters

objectType Type

Type of the object.

Returns

bool

true if this instance can convert the specified object type; otherwise, false.

ReadJson(JsonReader, Type, object?, JsonSerializer)

Reads the JSON representation of the object.

public override object? ReadJson(JsonReader reader, Type objectType, object? existingValue, JsonSerializer serializer)

Parameters

reader JsonReader

The Newtonsoft.Json.JsonReader to read from.

objectType Type

Type of the object.

existingValue object

The existing value of object being read.

serializer JsonSerializer

The calling serializer.

Returns

object

The object value.

WriteJson(JsonWriter, object?, JsonSerializer)

Writes the JSON representation of the object.

public override void WriteJson(JsonWriter writer, object? value, JsonSerializer serializer)

Parameters

writer JsonWriter

The Newtonsoft.Json.JsonWriter to write to.

value object

The value.

serializer JsonSerializer

The calling serializer.