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