Class NullableStringFormatterMsgPack
Implements
IMessagePackFormatter<string>
Inherited Members
Namespace: Algorand.Algod.Model.Converters.MsgPack
Assembly: Algorand.dll
Syntax
public sealed class NullableStringFormatterMsgPack : IMessagePackFormatter<string?>
Fields
| Edit this page View SourceInstance
Declaration
public static readonly NullableStringFormatterMsgPack Instance
Field Value
| Type | Description |
|---|---|
| NullableStringFormatterMsgPack |
Methods
| Edit this page View SourceDeserialize(ref MessagePackReader, MessagePackSerializerOptions)
Deserializes a value.
Declaration
public string? Deserialize(ref MessagePackReader reader, MessagePackSerializerOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| MessagePackReader | reader | The reader to deserialize from. |
| MessagePackSerializerOptions | options | The serialization settings to use, including the resolver to use to obtain formatters for types that make up the composite type string. |
Returns
| Type | Description |
|---|---|
| string | The deserialized value. |
Serialize(ref MessagePackWriter, string?, MessagePackSerializerOptions)
Serializes a value.
Declaration
public void Serialize(ref MessagePackWriter writer, string? value, MessagePackSerializerOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| MessagePackWriter | writer | The writer to use when serializing the value. |
| string | value | The value to be serialized. |
| MessagePackSerializerOptions | options | The serialization settings to use, including the resolver to use to obtain formatters for types that make up the composite type string. |
Implements
MessagePack.Formatters.IMessagePackFormatter<T>