How to get only File extension from path in c#

C# Code:

string FilePath ="D:\\images\\1.png";

string Extention = Path.GetExtension(FilePath);

Popular posts from this blog

How to protect your Drive/Flash USB Drive (Pen Drive) with Password without using any software