Table of Contents

Class IntermediateWriter

Namespace
Microsoft.Xna.Framework.Content.Pipeline.Serialization.Intermediate
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

IntermediateSerializer

Xml

Gets the instances XML writer.

public XmlWriter Xml { get; }

Property Value

XmlWriter

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 object

The object to write.

format ContentSerializerAttribute

The format attribute to use.

typeSerializer ContentTypeSerializer

The type serializer to use.

declaredType Type

The 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 T

The object to write.

format ContentSerializerAttribute

The 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 T

The object to write.

format ContentSerializerAttribute

The format attribute to use.

typeSerializer ContentTypeSerializer

The 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 T

The object to write.

format ContentSerializerAttribute

The 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 T

The object to write.

format ContentSerializerAttribute

The format attribute to use.

typeSerializer ContentTypeSerializer

The 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 T

The object to write.

format ContentSerializerAttribute

The 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 Type

The type whose fully qualified name will be written.