hasmer
Static Public Member Functions | List of all members
Hasmer.ResourceManager Class Reference

Utility for working with embedded resources. More...

Static Public Member Functions

static string ReadEmbeddedResource (string name)
 Loads an embedded resource and returns its contents. More...
 
static T ReadEmbeddedResource< T > (string name)
 Loads an embedded resource as a JSON object. More...
 
static JObject LoadJsonObject (string name)
 Loads a JSON embedded resource. More...
 

Detailed Description

Utility for working with embedded resources.

Member Function Documentation

◆ LoadJsonObject()

static JObject Hasmer.ResourceManager.LoadJsonObject ( string  name)
inlinestatic

Loads a JSON embedded resource.

Parameters
nameThe name of the resource, without the ".json" extension.

◆ ReadEmbeddedResource()

static string Hasmer.ResourceManager.ReadEmbeddedResource ( string  name)
inlinestatic

Loads an embedded resource and returns its contents.

Parameters
nameThe name of the resource, without the ".json" extension.

◆ ReadEmbeddedResource< T >()

static T Hasmer.ResourceManager.ReadEmbeddedResource< T > ( string  name)
inlinestatic

Loads an embedded resource as a JSON object.

Parameters
nameThe name of the resource, without the ".json" extension.

The documentation for this class was generated from the following file: