IntermediateReader.ReadObject Generic Method (ContentSerializerAttribute, T)
Note
This generic method is available only when developing for Windows.
Reads a single object from the input XML stream, optionally specifying an existing instance to receive the data.
Syntax
'Declaration
Public Function ReadObject(Of T) ( _
format As ContentSerializerAttribute, _
existingInstance As T _
) As T
public T ReadObject<T> (
ContentSerializerAttribute format,
T existingInstance
)
public:
generic<typename T>
T ReadObject(
ContentSerializerAttribute format,
T existingInstance
)
Type Parameters
- T
The type of object read.
Parameters
- format
Type: ContentSerializerAttribute
The format expected by the type serializer. - existingInstance
Type: T
The object receiving the data, or null if a new instance should be created.
Return Value
Type: T
The object.
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