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 a .NET PascalCase property to camelCase for msgpack.
public static MessagePackNamingPolicy CamelCase { get; }
Property Value
PascalCase
Gets a naming policy that converts a .NET camelCase property to PascalCase for msgpack.
public static MessagePackNamingPolicy PascalCase { 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.