Lite library containing definition of Media Types
Since in System.Net.Mime.MediaTypeNames
not all Media Types all defined
and it would be nice to have const for example MediaTypeNames.Image.Png
So I decided to parse documentation of Media Types to create const strings for all types.
Media Types are defined by Internet Assigned Numbers Authority
It is two-part identifier for file formats and format contents transmitted more info
This is how to use this library
var imgPng = MediaTypesLite.MediaType.Image.Png; // image/png
var appWord = MediaTypesLite.MediaType.Application.Msword; // application/msword
or simply add using
using MediaTypesLite.MediaType;
var imgPng = Image.Png; // image/png
var appWord = Application.Msword; // application/msword