IntermediateReader.ReadRawObject Generic Method (ContentSerializerAttribute, T)

Note

This generic method is available only when developing for Windows.

Reads a single object from the input XML stream, as an instance of the specified type.

Syntax

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

Type Parameters

  • T
    The type of object to read.

Parameters

  • format
    Type: ContentSerializerAttribute
    The object.
  • existingInstance
    Type: T
    The object receiving the data, or null if a new instance should be created.

Return Value

Type: T
The type of object read.

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