Class NewtonsoftAttributes
- Namespace
- TypedRest.CodeGeneration.CSharp
- Assembly
- TypedRest.CodeGeneration.CSharp.dll
Annotates DTOs for Newtonsoft.Json.
public sealed class NewtonsoftAttributes : JsonAttributes
- Inheritance
-
objectNewtonsoftAttributes
- Inherited Members
Properties
Serializer
The name of the serializer these attributes are for.
public override string Serializer { get; }
Property Value
Methods
EnumMemberName(string)
Carries the wire name of an enum value whose C# name differs from it.
public override CSharpAttribute EnumMemberName(string name)
Parameters
namestring
Returns
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
namestring