Table of Contents

Class ContentTypeReaderManager

Namespace
Microsoft.Xna.Framework.Content
Assembly
MonoGame.Framework.dll
public sealed class ContentTypeReaderManager
Inheritance
ContentTypeReaderManager
Inherited Members

Methods

AddTypeCreator(string, Func<ContentTypeReader>)

Adds the type creator.

public static void AddTypeCreator(string typeString, Func<ContentTypeReader> createFunction)

Parameters

typeString string

Type string.

createFunction Func<ContentTypeReader>

Create function.

ClearTypeCreators()

public static void ClearTypeCreators()

GetTypeReader(Type)

public ContentTypeReader GetTypeReader(Type targetType)

Parameters

targetType Type

Returns

ContentTypeReader

PrepareType(string)

Removes Version, Culture and PublicKeyToken from a type string.

public static string PrepareType(string type)

Parameters

type string

A string

Returns

string

A string

Remarks

Supports multiple generic types (e.g. Dictionary<TKey,TValue>) and nested generic types (e.g. List<List<int>>).