Class ODataDeserializer
An ODataDeserializer is used to read an ODataMessage into a CLR object.
public abstract class ODataDeserializer
- Inheritance
-
ODataDeserializer
- Derived
- Inherited Members
Constructors
ODataDeserializer(ODataPayloadKind)
Initializes a new instance of the ODataDeserializer class.
protected ODataDeserializer(ODataPayloadKind payloadKind)
Parameters
payloadKind
ODataPayloadKindThe kind of payload this deserializer handles.
Properties
ODataPayloadKind
The kind of ODataPayload this deserializer handles.
public ODataPayloadKind ODataPayloadKind { get; }
Property Value
- ODataPayloadKind
Methods
Read(ODataMessageReader, Type, ODataDeserializerContext)
Reads an Microsoft.Data.OData.IODataRequestMessage using messageReader.
public virtual object Read(ODataMessageReader messageReader, Type type, ODataDeserializerContext readContext)
Parameters
messageReader
ODataMessageReaderThe messageReader to use.
type
TypeThe type of the object to read into.
readContext
ODataDeserializerContextThe read context.
Returns
- object
The deserialized object.