How to enumerate embedded resources???

  • Thread starter Thread starter Bob Rock
  • Start date Start date
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
 
Try:

Assembly executingAssembly = GetExecutingAssembly();

foreach ( string resourceName in
executingAssembly.GetManifestResourceNames() )

{

Console.WriteLine( resourceName );

}

Tales from the SharpSide
http://www.scottcreynolds.com
 
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
 
Back
Top