Mirror of wagesj45/MimeTypeList.
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Jordan Wages 79f06e579a
Added external analytics.
3 years ago
MimeTypeList Fixing various bugs in structure. 4 years ago
.gitattributes Initial commit 4 years ago
.gitignore Initial commit 4 years ago
LICENSE Initial commit 4 years ago
README.md Added external analytics. 3 years ago



Provides a hard-coded collection of file extension and mime type mapping. This project was inspired by samuelneff/MimeTypeMap. This project uses the data from that project to create classes with members for each extension and mime type for lookups.

You can access the values with the FileExtensions and MimeTypes static classes:



You can install MimeTypeList from Nuget.org on its package page.


After installation MimeTypeList, include the following using statement in your class:

using MimeTypeList;

Getting Extensions

Console.WriteLine(MimeTypes.application.onenote); // ".one"

Getting Mime Types

Console.WriteLine(FileExtensions._ruleset); // "application/xml"


Donate with Trans Pay

If you would like to donate to the development of MimeTypeList, please direct you donation to my patron page (powered by Stripe) or directly via my PayPal.Me page. You can also donate Ethereum to my wallet. Image