IntermediateReader.ReadRawObject Generic Method (ContentSerializerAttribute, ContentTypeSerializer, 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 using the specified type hint, optionally specifying an existing instance to receive the data.
Syntax
'Declaration
Public Function ReadRawObject(Of T) ( _
format As ContentSerializerAttribute, _
typeSerializer As ContentTypeSerializer, _
existingInstance As T _
) As T
public T ReadRawObject<T> (
ContentSerializerAttribute format,
ContentTypeSerializer typeSerializer,
T existingInstance
)
public:
generic<typename T>
T ReadRawObject(
ContentSerializerAttribute format,
ContentTypeSerializer typeSerializer,
T existingInstance
)
Type Parameters
- T
The type of object to read.
Parameters
- format
Type: ContentSerializerAttribute
The format of the XML. - typeSerializer
Type: ContentTypeSerializer
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