Table of Contents

Class ContentReaderExtensions

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

Helper extension methods for ContentReader.

public static class ContentReaderExtensions
Inheritance
ContentReaderExtensions
Inherited Members

Methods

GetGraphicsDevice(ContentReader)

Returns the GraphicsDevice instance from the service provider of the ContentManager associated with this content reader.

public static GraphicsDevice GetGraphicsDevice(this ContentReader contentReader)

Parameters

contentReader ContentReader

Returns

GraphicsDevice

The GraphicsDevice.

Exceptions

InvalidOperationException

The ContentManager.ServiceProvider does not contain a GraphicsDevice instance.