ServiceContractResolver Class

Definition

Represents the default Newtonsoft.Json.Serialization.IContractResolver used by System.Net.Http.Formatting.JsonMediaTypeFormatter but with the addition of supporting camel cased serialization. It uses the formatter's System.Net.Http.Formatting.IRequiredMemberSelector to select required members and recognizes the SerializableAttribute type annotation.

public class ServiceContractResolver : System.Net.Http.Formatting.JsonContractResolver
type ServiceContractResolver = class
    inherit JsonContractResolver
Public Class ServiceContractResolver
Inherits JsonContractResolver
Inheritance
System.Net.Http.Formatting.JsonContractResolver
ServiceContractResolver
Derived

Constructors

ServiceContractResolver(MediaTypeFormatter)

Initializes a new instance of the ServiceContractResolver with a given formatter to use for resolving required members.

Methods

ResolvePropertyName(String) System.Net.Http.Formatting.JsonContractResolver.ResolvePropertyName(System.String)

Applies to