Show / Hide Table of Contents

Namespace Firefly.EmbeddedResourceLoader.Materialization

Classes

TempDirectory

An object that materializes a collection of embedded resources to a directory structure

For this to work properly, embedded resource files are all expected to have file extensions. This is because the internal manifest format uses dot as a separator character therefore it is impossible to programmatically determine whether the last dot in a resource name is a directory separator or a file extension. The assumption used here is that it is a file extension.

The compiler has a nasty trick when embedding folders into the resource manifest. These folders are effectively namespace names when committed to the assembly resource manifest and as such must confirm to .NET lexical structure rules for identifiers. All invalid characters as per this specification are replaced with underscore, and if the first character of the folder name is invalid, then an underscore is prefixed to the folder name.

TempFile

Provides file backing for an embedded resource. It is up to the caller to dispose any TempFile instances to ensure clean-up of files created.

In This Article
Back to top Generated by DocFX