예제 #1
0
 private string[] GetMimeTypes()
 {
     return(FileTypeChoices
            .SelectMany(choice => choice.Value)
            .Select(extension => MimeTypeService.GetFromExtension(extension))
            .Distinct()
            .ToArray());
 }
예제 #2
0
 private string[] GetFileTypes() => FileTypeChoices.SelectMany(x => x.Value.Select(val => val.TrimStart(new[] { '.' }))).ToArray();