Table of Contents

Class ContentTypeReader

Namespace
Microsoft.Xna.Framework.Content
Assembly
MonoGame.Framework.dll

Defines the core behavior of content type readers used for reading a specific managed type from an .xnb binary format and provides a base for derived classes.

public abstract class ContentTypeReader
Inheritance
ContentTypeReader
Derived
Inherited Members

Constructors

ContentTypeReader(Type)

protected ContentTypeReader(Type targetType)

Parameters

targetType Type

Properties

CanDeserializeIntoExistingObject

Gets a value that indicates whether this content type read can deserialize into an object with the same type ad defined in the TargetType property.

public virtual bool CanDeserializeIntoExistingObject { get; }

Property Value

bool

TargetType

Gets the type handled by this reader component.

public Type TargetType { get; }

Property Value

Type

TypeVersion

Gets the format version number for this type.

public virtual int TypeVersion { get; }

Property Value

int

Methods

Initialize(ContentTypeReaderManager)

protected virtual void Initialize(ContentTypeReaderManager manager)

Parameters

manager ContentTypeReaderManager

Read(ContentReader, object)

protected abstract object Read(ContentReader input, object existingInstance)

Parameters

input ContentReader
existingInstance object

Returns

object