API Reference
Class
JavaScriptFunctionConverter
Allows embedding of raw JavaScript functions within JSON options.
Inheritance
- JsonConverter<String>
- JavaScriptFunctionConverter
Constructors
public JavaScriptFunctionConverter() #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