Table of Contents

Enum OptionalConverters.GuidStringFormat

Namespace
Nerdbank.MessagePack
Assembly
Nerdbank.MessagePack.dll

The msgpack format used to store Guid values as strings.

public enum OptionalConverters.GuidStringFormat

Fields

StringB = 2

The Guid will be stored as a string in the msgpack stream using the "B" format.

An example of this format is "{69b94234-2c9e-468b-9bae-77df7a288e45}".

StringD = 1

The Guid will be stored as a string in the msgpack stream using the "D" format, which is the default format used by ToString().

An example of this format is "69b94234-2c9e-468b-9bae-77df7a288e45".

StringN = 0

The Guid will be stored as a string in the msgpack stream using the "N" format.

An example of this format is "69b942342c9e468b9bae77df7a288e45".

StringP = 3

The Guid will be stored as a string in the msgpack stream using the "P" format.

An example of this format is "(69b94234-2c9e-468b-9bae-77df7a288e45)".

StringX = 4

The Guid will be stored as a string in the msgpack stream using the "X" format.

An example of this format is "{0x69b94234,0x2c9e,0x468b,{0x9b,0xae,0x77,0xdf,0x7a,0x28,0x8e,0x45}}".

Remarks

By default, Guid values are serialized as binary. This enum can be used with WithGuidConverter(MessagePackSerializer, GuidStringFormat) to serialize them as strings instead.