I have an array {{".txt|.doc|.docx", "100000"}, {".xls|.xlsx|.xxx" , "10000"}, ".npp", "100000"}
I am trying to find a way to run a foreach loop on each member of the array in a loop while also checking the first member as a string not an array.
The code will search for all docs greater than 10000 bytes, as long as the docs are txt, doc, docx, etc and then search all xls, and then npp. Some of the members of the first part of the array have multiple types, some just one. Is there an efficient way to do this?
I tried: if (size == (size[2,i]) && ((ext != sextension[1, 0].ToUpper())) && ((ext != sextension[1, x].ToUpper())))
but obviously that doesn't work. Sorry if this is not clear, but I am not sure how to explain it otherwise.