IntermediateReader.ReadObject Generic Method (ContentSerializerAttribute, ContentTypeSerializer, T)

Note

This generic method is available only when developing for Windows.

Reads a single object from the input XML stream using the specified type hint, optionally specifying an existing instance to receive the data.

Syntax

'Declaration
Public Function ReadObject(Of T) ( _
         format As ContentSerializerAttribute, _
         typeSerializer As ContentTypeSerializer, _
         existingInstance As T _
) As T 
public T ReadObject<T> (
         ContentSerializerAttribute format,
         ContentTypeSerializer typeSerializer,
         T existingInstance
)
public:
generic<typename T>
T ReadObject(
         ContentSerializerAttribute format,
         ContentTypeSerializer typeSerializer,
         T existingInstance
)

Type Parameters

  • T
    The type of object read.

Parameters

Return Value

Type: T
The object

Requirements

Namespace: Microsoft.Xna.Framework.Content.Pipeline.Serialization.Intermediate

Assembly: Microsoft.Xna.Framework.Content.Pipeline (in microsoft.xna.framework.content.pipeline.dll)

See Also

Reference

IntermediateReader Class
IntermediateReader Members
Microsoft.Xna.Framework.Content.Pipeline.Serialization.Intermediate Namespace

Platforms

Windows 7, Windows Vista, Windows XP