wolfgang ziegler


„make stuff and blog about it“

Loading embedded resources in C#

January 12, 2011

Sometimes it can be quite useful to get a list of all embedded resources of an assembly.

Even if its just for the reason to get the right format of the path to your embedded resource when loading it with GetManifestResourceStream (I always get this wrong in the first place).

Here the line of code that provides you with this list:

string[] names = this.GetType().Assembly.GetManifestResourceNames();