private string GetInfoForMask(string mask) { if (mask.Length == 0) { return(""); } FileMask fileMask = new FileMask(mask); if (fileMask.type == FileMask.Type.Mask) { string ext = mask.Substring(2); return(ShellIcon.GetTypeInfo("x." + ext)); } return(fileMask.GetTypeInfo()); }