Class ContentTypeWriter<T>
- 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
TThe 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
outputContentWriterThe content writer serializing the value.
valueobjectThe value to write.
Write(ContentWriter, T)
Compiles a strongly typed object into binary format.
protected abstract void Write(ContentWriter output, T value)
Parameters
outputContentWriterThe content writer serializing the value.
valueTThe value to write.