I need to decide whether file name fits to file mask. The file mask could contain * or ? characters. Is there any simple solution for this?
bool bFits = Fits('myfile.txt', 'my*.txt'); private bool Fits(string sFileName, string sFileMask) { ??? anything simple here ??? }
Try this: