Table of Contents

Class DictionaryReader<TKey, TValue>

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

This type is not meant to be used directly by MonoGame users. Its purpose is to allow to work-around AOT issues when loading assets with the ContentManager fail due to the absence of runtime-reflection support in that context (i.e. missing types due to trimming and inability to statically discover them at compile-time). If ContentManager.Load() throws an NotSupportedExeception, the message should provide insights on how to fix it.

[DynamicallyAccessedMembers((DynamicallyAccessedMemberTypes)-1)]
public class DictionaryReader<TKey, TValue> : ContentTypeReader<Dictionary<TKey, TValue>>

Type Parameters

TKey
TValue
Inheritance
DictionaryReader<TKey, TValue>
Inherited Members

Constructors

DictionaryReader()

public DictionaryReader()

Properties

CanDeserializeIntoExistingObject

public override bool CanDeserializeIntoExistingObject { get; }

Property Value

bool

Methods

Initialize(ContentTypeReaderManager)

protected override void Initialize(ContentTypeReaderManager manager)

Parameters

manager ContentTypeReaderManager

Read(ContentReader, Dictionary<TKey, TValue>)

protected override Dictionary<TKey, TValue> Read(ContentReader input, Dictionary<TKey, TValue> existingInstance)

Parameters

input ContentReader
existingInstance Dictionary<TKey, TValue>

Returns

Dictionary<TKey, TValue>
latest ▼