S
shapper
Hello,
I am creating a method that given a path and a list of file types
(doc, docx, pdf, ...) checks if the file is of one of those types. I
am using:
public static bool FileType(string path, string[] types) {
string extension = Path.GetExtension(path)
}
Now I need to check if extension is contained in types.
I was looking for a Contain method in Array but I can't find it.
How can I do this?
Thanks,
Miguel
I am creating a method that given a path and a list of file types
(doc, docx, pdf, ...) checks if the file is of one of those types. I
am using:
public static bool FileType(string path, string[] types) {
string extension = Path.GetExtension(path)
}
Now I need to check if extension is contained in types.
I was looking for a Contain method in Array but I can't find it.
How can I do this?
Thanks,
Miguel