Table of Contents

Class ODataCollectionDeserializer

Namespace
System.Web.Http.OData.Formatter.Deserialization
Assembly
System.Web.Http.OData.dll

Represents an ODataDeserializer that can read OData collection payloads.

public class ODataCollectionDeserializer : ODataEdmTypeDeserializer
Inheritance
ODataCollectionDeserializer
Inherited Members

Constructors

ODataCollectionDeserializer(ODataDeserializerProvider)

Initializes a new instance of the ODataCollectionDeserializer class.

public ODataCollectionDeserializer(ODataDeserializerProvider deserializerProvider)

Parameters

deserializerProvider ODataDeserializerProvider

The deserializer provider to use to read inner objects.

Methods

Read(ODataMessageReader, Type, ODataDeserializerContext)

public override object Read(ODataMessageReader messageReader, Type type, ODataDeserializerContext readContext)

Parameters

messageReader ODataMessageReader
type Type
readContext ODataDeserializerContext

Returns

object

ReadCollectionValue(ODataCollectionValue, IEdmTypeReference, ODataDeserializerContext)

Deserializes the given collectionValue under the given readContext.

public virtual IEnumerable ReadCollectionValue(ODataCollectionValue collectionValue, IEdmTypeReference elementType, ODataDeserializerContext readContext)

Parameters

collectionValue ODataCollectionValue

The Microsoft.Data.OData.ODataCollectionValue to deserialize.

elementType IEdmTypeReference

The element type of the collection to read.

readContext ODataDeserializerContext

The deserializer context.

Returns

IEnumerable

The deserialized collection.

ReadInline(object, IEdmTypeReference, ODataDeserializerContext)

public override sealed object ReadInline(object item, IEdmTypeReference edmType, ODataDeserializerContext readContext)

Parameters

item object
edmType IEdmTypeReference
readContext ODataDeserializerContext

Returns

object