Class
MimeHelper
Provides useful helper methods for resolving mime-types from common formats.
public static class MimeHelperInheritance #
Inherited Members #
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Properties #
| Name | Description |
|---|---|
| DefaultMimeType | Gets or sets the MimeHelper default fallback mime-type. |
Methods #
| Name | Description |
|---|---|
| GetFileExtension(string, string?) | Gets the file extension for the specified MIME type. |
| GetMimeType(string, string?) | Gets the content mime-type from the specified file extension. |
| IsBrowserKnownInlineMimeType(string) | Determines whether the specified mime-type is considered an inline content type that can be displayed directly in most browsers. |
| IsPlainTextFile(string?) | Gets an boolean indicating if the specified file is an well-known plain text file. |
| IsPlainTextMimeType(string?) | Gets a value indicating whether the specified MIME type is a plain text MIME type. |