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
valueExternalReference<T>The external reference to write.
Type Parameters
TThe 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
valueobjectThe object to write.
formatContentSerializerAttributeThe format attribute to use.
typeSerializerContentTypeSerializerThe type serializer to use.
declaredTypeTypeThe 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
valueTThe object to write.
formatContentSerializerAttributeThe format attribute to use.
Type Parameters
TThe 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
valueTThe object to write.
formatContentSerializerAttributeThe format attribute to use.
typeSerializerContentTypeSerializerThe type serializer to use.
Type Parameters
TThe 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
valueTThe object to write.
formatContentSerializerAttributeThe format attribute to use.
Type Parameters
TThe 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
valueTThe object to write.
formatContentSerializerAttributeThe format attribute to use.
typeSerializerContentTypeSerializerThe type serializer to use.
Type Parameters
TThe 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
valueTThe object to write.
formatContentSerializerAttributeThe format attribute to use.
Type Parameters
TThe 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
typeTypeThe type whose fully qualified name will be written.