次の方法で共有


ContentWriter.WriteRawObject Generic Method (T, ContentTypeWriter)

Writes a single object to the output binary using the specified writer worker.

Namespace: Microsoft.Xna.Framework.Content.Pipeline.Serialization.Compiler
Assembly: Microsoft.Xna.Framework.Content.Pipeline (in microsoft.xna.framework.content.pipeline.dll)

Syntax

public void WriteRawObject<T> (
         T value,
         ContentTypeWriter typeWriter
)

Type Parameters

  • T
    The type of value.

Parameters

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.

See Also

Reference

ContentWriter Class
ContentWriter Members
Microsoft.Xna.Framework.Content.Pipeline.Serialization.Compiler Namespace

Platforms

Windows XP SP2, Windows Vista