public void ExtractFile(string inputFile, string outputPath) { string extension = Path.GetExtension(inputFile); if (!string.IsNullOrEmpty(extension) && extension.StartsWith(".dat")) { DatFile.Extract(inputFile, outputPath); } }
public void ExtractFile(string inputFile, string outputPath) { var fileName = Path.GetFileName(inputFile); var extension = Path.GetExtension(inputFile); if (extension.StartsWith(".dat")) { DatFile.Extract(inputFile, outputPath); } }