Class MessagePackNamingPolicy
- Namespace
- Nerdbank.MessagePack
- Assembly
- Nerdbank.MessagePack.dll
Defines a transformation for property names from .NET to msgpack.
public abstract class MessagePackNamingPolicy
- Inheritance
-
MessagePackNamingPolicy
- Inherited Members
Properties
CamelCase
Gets a naming policy that converts identifiers to camelCase for serialization purposes.
public static MessagePackNamingPolicy CamelCase { get; }
Property Value
KebabLowerCase
Gets a naming policy that converts identifiers to lower-case kebab-case (e.g., "example-name") for serialization purposes.
public static MessagePackNamingPolicy KebabLowerCase { get; }
Property Value
KebabUpperCase
Gets a naming policy that converts identifiers to upper-case kebab-case (e.g., "EXAMPLE-NAME") for serialization purposes.
public static MessagePackNamingPolicy KebabUpperCase { get; }
Property Value
PascalCase
Gets a naming policy that converts identifiers to PascalCase for serialization purposes.
public static MessagePackNamingPolicy PascalCase { get; }
Property Value
SnakeLowerCase
Gets a naming policy that converts property names to snake_case (with all lowercase letters) for serialization purposes.
public static MessagePackNamingPolicy SnakeLowerCase { get; }
Property Value
SnakeUpperCase
Gets a naming policy that converts property names to SNAKE_CASE (with all uppercase letters) for serialization purposes.
public static MessagePackNamingPolicy SnakeUpperCase { get; }
Property Value
Methods
ConvertName(string)
Transforms a property name as defined in .NET to a property name as it should be serialized to MessagePack.
public abstract string ConvertName(string name)
Parameters
name
stringThe .NET property name.
Returns
- string
The msgpack property name.