EmbeddedResourceBrowser 1.2.0

View on GitHub View on NuGet

Merge Method

Creates an EmbeddedDirectory containing the resources from all provided assemblies using a merge strategy.

This is a static method.

This is a public method.

Parameters

Returns: EmbeddedDirectory

Returns an EmbeddedDirectory containing the merged resources from all provided assemblies. If multiple resources have the same name, then latest one is picked (regardless of assembly name).

Exceptions

Example

Given two assemblies with the following embedded resources:

Assembly1.directory1.resource-1.txt
Assembly1.directory1.resource-2.txt
Assembly1.directory2.resource-3.txt

Assembly2.directory1.resource-2.txt
Assembly2.directory1.resource-3.txt
Assembly2.directory3.resource-3.txt

The result of this method will be an EmbeddedDirectory having the following structure:

/
    directory1/
        resource-1.txt (from Assembly1)
        resource-2.txt (from Assembly2, matching resources)
        resource-3.txt (from Assembly2)
    directory2/
        resource-3.txt (from Assembly1)
    directory3/
        resource-3.txt (from Assembly2)

The matching is done by ignoring the case of each directory and file.


EmbeddedResourceBrowser 1.2.0 - View on GitHub - View on NuGet