Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

embedded resources

Status
Not open for further replies.

davikokar

Technical User
May 13, 2004
523
IT
I have some embedded resources (xml, bmp...) organised in folders within my project. Is there a way to list all files in one the resource folders?

thanks for help
 
off the top of my head I think you can get a list of resources. using something along the lines of
Stream[] resrouces = assembly.GetResourceStreams();
there may be an overload to pass a namespace filter like
Stream[] resrouces = assembly.GetResourceStreams("A.B.C");

if not you could either (thinking out loud)
1. pull all resources and iterate over them and filter on namespaces.
2. inerate over the assembly find resources and there respective namespaces and filter that way.

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top