Convert the apache mime.types file to C# Dictionary<string, string> keyed by file extension.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
Properties Initial commit Sep 14, 2011
ApacheMimeTypes.cs Initial commit Sep 14, 2011
ApacheMimeTypesToDotNet.csproj Initial commit Sep 14, 2011
ApacheMimeTypesToDotNet.sln Initial commit Sep 14, 2011
Program.cs Initial commit Sep 14, 2011 Update May 3, 2015

Convert the Apache mime.types file to C# Dictionary keyed by file extension. See ApacheMimeTYpes.cs for example output. The source file is located here:

And is used per the permission at the top:

# This file maps Internet media types to unique file extension(s).
# Although created for httpd, this file is used by many software systems
# and has been placed in the public domain for unlimited redisribution.

The generated code looks like this:

using System;
using System.Collections.Generic;

namespace ApacheMimeTypes
    class Apache
        public static Dictionary<string, string> MimeTypes = new Dictionary<string, string>
            { "123", "application/vnd.lotus-1-2-3" },
            { "3dml", "text/vnd.in3d.3dml" },
            { "3g2", "video/3gpp2" },

The full output is here: