How to enumerate embedded resources???

B

Bob Rock

Hello,

I'd like to be able to enumerate resources in embedded .resources files like
it is possible with external .resources files using the ResourceReader
class.
Is there a way to do such a thing???

Bob Rock
 
S

Scott C. Reynolds

Try:

Assembly executingAssembly = GetExecutingAssembly();

foreach ( string resourceName in
executingAssembly.GetManifestResourceNames() )

{

Console.WriteLine( resourceName );

}

Tales from the SharpSide
http://www.scottcreynolds.com
 
B

Bob Rock

Try:
Assembly executingAssembly = GetExecutingAssembly();

foreach ( string resourceName in
executingAssembly.GetManifestResourceNames() )

{

Console.WriteLine( resourceName );

}

Yes, and what if I want the get the resource itself (not its name)????

Bob Rock
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top