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

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

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

Syntax

public T ReadObject<T> (
         ContentSerializerAttribute format,
         ContentTypeSerializer typeSerializer,
         T existingInstance
)

Type Parameters

  • T
    The type of object read.

Parameters

  • format
    The format of the XML.
  • typeSerializer
    The type serializer.
  • existingInstance
    The object receiving the data, or null if a new instance should be created.

Return Value

The object

See Also

Reference

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

Platforms

Windows XP SP2, Windows Vista