ContentWriter.WriteRawObject Generic Method (T, ContentTypeWriter)
Note
This generic method is available only when developing for Windows.
Writes a single object to the output binary using the specified writer worker.
Syntax
'Declaration
Public Sub WriteRawObject(Of T) ( _
value As T, _
typeWriter As ContentTypeWriter _
)
public void WriteRawObject<T> (
T value,
ContentTypeWriter typeWriter
)
public:
generic<typename T>
void WriteRawObject(
T value,
ContentTypeWriter typeWriter
)
Type Parameters
- T
The type of value.
Parameters
- value
Type: T
The value to write. - typeWriter
Type: ContentTypeWriter
The writer worker. This should be looked up from the Initialize method of the ContentTypeWriter that is calling WriteRawObject, by calling GetTypeWriter.
Remarks
WriteRawObject does not write any type identifier, so it cannot support null or polymorphic values, and the reader must specify an identical type while loading the compiled data.
Requirements
Namespace: Microsoft.Xna.Framework.Content.Pipeline.Serialization.Compiler
Assembly: Microsoft.Xna.Framework.Content.Pipeline (in microsoft.xna.framework.content.pipeline.dll)
See Also
Reference
ContentWriter Class
ContentWriter Members
Microsoft.Xna.Framework.Content.Pipeline.Serialization.Compiler Namespace
Platforms
Windows 7, Windows Vista, Windows XP