How can I GetFiles only of 2 types?

cuibap

New Member
Code:\[code\]string[] arrFileEntries = Directory.GetFiles(MapPath("..\\Pictures\\"), "*.jpg", "*.png");\[/code\]Error:The closest match to the overloaded method System.IO.Directory.GetFiles (string, string, System.IO.SearchOption) has some invalid arguments
 
Back
Top