Пример #1
0
 /// <summary>
 /// Converts content type enum value to HTTP content-type header value
 /// </summary>
 public static string ContentTypeToString(MimeContentType type)
 {
     if (type == MimeContentType.application)
     {
         return("application/octet-stream");
     }
     return(type.ToString().Replace('_', '/'));
 }
Пример #2
0
		/// <summary>
		/// Converts content type enum value to HTTP content-type header value
		/// </summary>
		public static string ContentTypeToString(MimeContentType type)
		{
			if (type == MimeContentType.application)
				return "application/octet-stream";
			return type.ToString().Replace('_', '/');
		}