Table of Contents

Class NewtonsoftAttributes

Namespace
TypedRest.CodeGeneration.CSharp
Assembly
TypedRest.CodeGeneration.CSharp.dll

Annotates DTOs for Newtonsoft.Json.

public sealed class NewtonsoftAttributes : JsonAttributes
Inheritance
object
NewtonsoftAttributes
Inherited Members

Properties

Serializer

The name of the serializer these attributes are for.

public override string Serializer { get; }

Property Value

string

Methods

EnumMemberName(string)

Carries the wire name of an enum value whose C# name differs from it.

public override CSharpAttribute EnumMemberName(string name)

Parameters

name string

Returns

CSharpAttribute

Remarks

Newtonsoft's StringEnumConverter honours [EnumMember].

PropertyName(string)

Carries the wire name of a property whose C# name differs from it.

public override CSharpAttribute PropertyName(string name)

Parameters

name string

Returns

CSharpAttribute