IntermediateWriter.WriteRawObject Generic Method (T, ContentSerializerAttribute)
Note
This generic method is available only when developing for Windows.
Writes a single object to the output XML stream using the specified serializer worker.
Syntax
'Declaration
Public Sub WriteRawObject(Of T) ( _
value As T, _
format As ContentSerializerAttribute _
)
public void WriteRawObject<T> (
T value,
ContentSerializerAttribute format
)
public:
generic<typename T>
void WriteRawObject(
T value,
ContentSerializerAttribute format
)
Type Parameters
- T
The type of value to write.
Parameters
- value
Type: T
The value to write. - format
Type: ContentSerializerAttribute
The format of the XML.
Remarks
This method does not write any type identifier, so it cannot support null or polymorphic values and the reader must specify an identical type while deserializing.
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
IntermediateWriter Class
IntermediateWriter Members
Microsoft.Xna.Framework.Content.Pipeline.Serialization.Intermediate Namespace
Platforms
Windows 7, Windows Vista, Windows XP