Skip to content

SideswipeN7/MediaTypesLite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

MediaTypesLite

Lite library containing definition of Media Types

About The Project

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

Media Types are defined by Internet Assigned Numbers Authority
It is two-part identifier for file formats and format contents transmitted more info

Definded Media Types in project

Getting Started

NuGet package

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

About

Lite library containing definition of Media Types

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages