public static bool IsModelFile(string fileName) { var ext = System.IO.Path.GetExtension(fileName); if ((string.Compare(ext, ".wsgen", true) != 0)) return false; else return true; }