public void GetFilesType(List <IDownloadedFile> files) { foreach (var file in files) { var extention = Path.GetExtension(file.Url)?.ToString().Replace(".", ""); file.FileType = iOHelper.GetFileType(extention).ToString(); } }