Dela via


ContentReader.ReadObject Generic Method (T)

Reads a single managed object from the current stream. Can be called recursively.

Namespace: Microsoft.Xna.Framework.Content
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

Syntax

public T ReadObject<T> (
         T existingInstance
)

Type Parameters

  • T
    The type of object to read.

Parameters

  • existingInstance
    An existing object to write into.

Return Value

The object that was read.

See Also

Reference

ContentReader Class
ContentReader Members
Microsoft.Xna.Framework.Content Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista