How to list and print all supported file types

Here is the full list of supported file formats. In case you need to list or print out all of the supported file formats in your application you can do the following:

The following code sample demonstrates how to print all supported file formats list to the console.

IEnumerable<FileType> supportedFileTypes = FileType.GetSupportedFileTypes();

foreach (FileType fileType in supportedFileTypes)
{
    Console.WriteLine(fileType);
}