<PackageReference Include="Microsoft.AspNet.WebApi.Client" Version="5.2.2-rc" />

ObjectContent<T>

public class ObjectContent<T> : ObjectContent
Generic form of ObjectContent.
public ObjectContent(T value, MediaTypeFormatter formatter)

Initializes a new instance of the ObjectContent<T> class.

public ObjectContent(T value, MediaTypeFormatter formatter, string mediaType)

Initializes a new instance of the ObjectContent<T> class.

public ObjectContent(T value, MediaTypeFormatter formatter, MediaTypeHeaderValue mediaType)

Initializes a new instance of the <see cref="T:System.Net.Http.ObjectContent`1" /> class.