Class IntermediateWriter
- Assembly
- MonoGame.Framework.Content.Pipeline.dll
IntermediateWriter is used to write content to the intermediate format.
public sealed class IntermediateWriter
- Inheritance
-
IntermediateWriter
- Inherited Members
Properties
Serializer
Gets the serializer.
public IntermediateSerializer Serializer { get; }
Property Value
Xml
Gets the instances XML writer.
public XmlWriter Xml { get; }
Property Value
Methods
WriteExternalReference<T>(ExternalReference<T>)
Writes an external reference to the XML writer.
public void WriteExternalReference<T>(ExternalReference<T> value)
Parameters
value
ExternalReference<T>The external reference to write.
Type Parameters
T
The type of the external reference.
WriteObject(object, ContentSerializerAttribute, ContentTypeSerializer, Type)
Writes an object to the XML writer using the specified format and type serializer.
public void WriteObject(object value, ContentSerializerAttribute format, ContentTypeSerializer typeSerializer, Type declaredType)
Parameters
value
objectThe object to write.
format
ContentSerializerAttributeThe format attribute to use.
typeSerializer
ContentTypeSerializerThe type serializer to use.
declaredType
TypeThe declared type of the object.
WriteObject<T>(T, ContentSerializerAttribute)
Writes an object to the XML writer using the specified format and type serializer.
public void WriteObject<T>(T value, ContentSerializerAttribute format)
Parameters
value
TThe object to write.
format
ContentSerializerAttributeThe format attribute to use.
Type Parameters
T
The type of the object.
WriteObject<T>(T, ContentSerializerAttribute, ContentTypeSerializer)
Writes an object to the XML writer using the specified format and type serializer.
public void WriteObject<T>(T value, ContentSerializerAttribute format, ContentTypeSerializer typeSerializer)
Parameters
value
TThe object to write.
format
ContentSerializerAttributeThe format attribute to use.
typeSerializer
ContentTypeSerializerThe type serializer to use.
Type Parameters
T
The type of the object.
WriteRawObject<T>(T, ContentSerializerAttribute)
Writes a raw object to the XML writer.
public void WriteRawObject<T>(T value, ContentSerializerAttribute format)
Parameters
value
TThe object to write.
format
ContentSerializerAttributeThe format attribute to use.
Type Parameters
T
The type of the object.
WriteRawObject<T>(T, ContentSerializerAttribute, ContentTypeSerializer)
Writes a raw object to the XML writer.
public void WriteRawObject<T>(T value, ContentSerializerAttribute format, ContentTypeSerializer typeSerializer)
Parameters
value
TThe object to write.
format
ContentSerializerAttributeThe format attribute to use.
typeSerializer
ContentTypeSerializerThe type serializer to use.
Type Parameters
T
The type of the object.
WriteSharedResource<T>(T, ContentSerializerAttribute)
Writes a raw object to the XML writer.
public void WriteSharedResource<T>(T value, ContentSerializerAttribute format)
Parameters
value
TThe object to write.
format
ContentSerializerAttributeThe format attribute to use.
Type Parameters
T
The type of the object.
WriteTypeName(Type)
Writes the fully qualified name of the specified type to the XML writer.
public void WriteTypeName(Type type)
Parameters
type
TypeThe type whose fully qualified name will be written.