ATMLManagerLibrary.managers.DocumentManager.DetermineContentType C# (CSharp) Method

DetermineContentType() public static method

public static DetermineContentType ( String fileName ) : String
fileName String
return String
        public static String DetermineContentType( String fileName )
        {
            String contentType = GENERIC_CONTENT_TYPE;
            int idx = fileName.LastIndexOf( "." );
            if (idx != -1)
            {
                String ext = fileName.Substring( idx );
                contentType = GetContentType( ext );
            }
            return contentType;
        }