Table of Contents

Class ContentTypeWriter<T>

Namespace
Microsoft.Xna.Framework.Content.Pipeline.Serialization.Compiler
Assembly
MonoGame.Framework.Content.Pipeline.dll

Provides a generic implementation of ContentTypeWriter methods and properties for compiling a specific managed type into a binary format.

public abstract class ContentTypeWriter<T> : ContentTypeWriter

Type Parameters

T

The type to write

Inheritance
ContentTypeWriter<T>
Derived
Inherited Members

Remarks

This is a generic implementation of ContentTypeWriter and, therefore, can handle strongly typed content data.

Constructors

ContentTypeWriter()

Initializes a new instance of the ContentTypeWriter class.

protected ContentTypeWriter()

Methods

Write(ContentWriter, object)

Compiles a strongly typed object into binary format.

protected override void Write(ContentWriter output, object value)

Parameters

output ContentWriter

The content writer serializing the value.

value object

The value to write.

Write(ContentWriter, T)

Compiles a strongly typed object into binary format.

protected abstract void Write(ContentWriter output, T value)

Parameters

output ContentWriter

The content writer serializing the value.

value T

The value to write.