ContentReader.ReadRawObject Generic Method (ContentTypeReader)
Reads a single managed object from the current stream as an instance of the specified type. If a base class of the actual object type is specified only data from the base type will be read.
Syntax
'Declaration
Public Function ReadRawObject(Of T) ( _
typeReader As ContentTypeReader _
) As T
public T ReadRawObject<T> (
ContentTypeReader typeReader
)
public:
generic<typename T>
T ReadRawObject(
ContentTypeReader typeReader
)
Type Parameters
- T
The type of object to read.
Parameters
- typeReader
Type: ContentTypeReader
The ContentTypeReader to use to read the object.
Return Value
Type: T
The object that was read.
Exceptions
Exception type | Condition |
---|---|
ArgumentNullException | typeReader is null. |
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