Table of Contents

Class ShapeShiftNamingPolicy

Namespace
ShapeShift
Assembly
ShapeShift.dll

Defines a transformation for property names from .NET to msgpack.

public abstract class ShapeShiftNamingPolicy
Inheritance
ShapeShiftNamingPolicy
Inherited Members

Properties

CamelCase

Gets a naming policy that converts identifiers to camelCase for serialization purposes.

public static ShapeShiftNamingPolicy CamelCase { get; }

Property Value

ShapeShiftNamingPolicy

KebabLowerCase

Gets a naming policy that converts identifiers to lower-case kebab-case (e.g., "example-name") for serialization purposes.

public static ShapeShiftNamingPolicy KebabLowerCase { get; }

Property Value

ShapeShiftNamingPolicy

KebabUpperCase

Gets a naming policy that converts identifiers to upper-case kebab-case (e.g., "EXAMPLE-NAME") for serialization purposes.

public static ShapeShiftNamingPolicy KebabUpperCase { get; }

Property Value

ShapeShiftNamingPolicy

PascalCase

Gets a naming policy that converts identifiers to PascalCase for serialization purposes.

public static ShapeShiftNamingPolicy PascalCase { get; }

Property Value

ShapeShiftNamingPolicy

SnakeLowerCase

Gets a naming policy that converts property names to snake_case (with all lowercase letters) for serialization purposes.

public static ShapeShiftNamingPolicy SnakeLowerCase { get; }

Property Value

ShapeShiftNamingPolicy

SnakeUpperCase

Gets a naming policy that converts property names to SNAKE_CASE (with all uppercase letters) for serialization purposes.

public static ShapeShiftNamingPolicy SnakeUpperCase { get; }

Property Value

ShapeShiftNamingPolicy

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 string

The .NET property name.

Returns

string

The msgpack property name.