Table of Contents

Class ContentTypeSerializer

Namespace
Microsoft.Xna.Framework.Content.Pipeline.Serialization.Intermediate
Assembly
MonoGame.Framework.Content.Pipeline.dll
public abstract class ContentTypeSerializer
Inheritance
ContentTypeSerializer
Derived
Inherited Members

Constructors

ContentTypeSerializer(Type, string)

protected ContentTypeSerializer(Type targetType, string xmlTypeName)

Parameters

targetType Type
xmlTypeName string

Properties

CanDeserializeIntoExistingObject

public virtual bool CanDeserializeIntoExistingObject { get; }

Property Value

bool

TargetType

public Type TargetType { get; }

Property Value

Type

XmlTypeName

public string XmlTypeName { get; }

Property Value

string

Methods

Deserialize(IntermediateReader, ContentSerializerAttribute, object)

protected abstract object Deserialize(IntermediateReader input, ContentSerializerAttribute format, object existingInstance)

Parameters

input IntermediateReader
format ContentSerializerAttribute
existingInstance object

Returns

object

Initialize(IntermediateSerializer)

protected virtual void Initialize(IntermediateSerializer serializer)

Parameters

serializer IntermediateSerializer

ObjectIsEmpty(object)

public virtual bool ObjectIsEmpty(object value)

Parameters

value object

Returns

bool

ScanChildren(IntermediateSerializer, ChildCallback, object)

protected virtual void ScanChildren(IntermediateSerializer serializer, ContentTypeSerializer.ChildCallback callback, object value)

Parameters

serializer IntermediateSerializer
callback ContentTypeSerializer.ChildCallback
value object

Serialize(IntermediateWriter, object, ContentSerializerAttribute)

protected abstract void Serialize(IntermediateWriter output, object value, ContentSerializerAttribute format)

Parameters

output IntermediateWriter
value object
format ContentSerializerAttribute