Mega Code Archive

 
Categories / C# / File Stream
 

Gets the extension without the dot

// //------------------------------------------------------------------------------ // // <copyright file="" company="Dascoba Development"> // //  Copyright Â© Dascoba Development 2010 // // </copyright> // //------------------------------------------------------------------------------ namespace Dascoba.Umb.FileManager.Support {     using System;     using System.IO;     using System.Linq;     public static class Util     {         /// <summary>         ///   Gets the extension without the dot         /// </summary>         /// <param name = "fileName">Name of the file.</param>         /// <returns></returns>         internal static string GetSimpleExtension(string fileName)         {             return Path.GetExtension(fileName).Replace(".", "");         }     } }