I use this code for get extensions in c# windows application:
FileInfo oFile = new FileInfo(file);
string strType = oFile.Extension;
its working.
but, If the user has changed the file extension, its not working.
This method displays the appearance extension. please help me for another method.