NerdDinner.Controllers.ResourceController.GetKnownContentType C# (CSharp) Method

GetKnownContentType() private method

private GetKnownContentType ( string resourceName ) : string
resourceName string
return string
        private string GetKnownContentType(string resourceName)
        {
            switch (System.IO.Path.GetExtension(resourceName))
            {
                case ".css":
                    return "text/css";
                case ".gif":
                    return "image/gif";
                case ".png":
                    return "image/png";
                case ".js":
                    return "application/x-javascript";
                default:
                    return "text/plain";
            }
        }