string url = "/temp/temp.pdf"; if (url.EndsWith(".pdf")) Console.WriteLine("It is a Pdf file."); else Console.WriteLine("Not pdf file.");
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)