Sdílet prostřednictvím


ContentReader.ReadObject Generic Method (ContentTypeReader)

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

Syntax

'Declaration
Public Function ReadObject(Of T) ( _
         typeReader As ContentTypeReader _
) As T 
public T ReadObject<T> (
         ContentTypeReader typeReader
)
public:
generic<typename T>
T ReadObject(
         ContentTypeReader typeReader
)

Type Parameters

  • T
    The type of object to read.

Parameters

Return Value

Type: T
The object that was read.

Requirements

Namespace: Microsoft.Xna.Framework.Content

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

See Also

Reference

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

Platforms

Windows Phone