Sisk

Class

MimeHelper

Namespace
Sisk.Core.Helpers
Assembly
Sisk.Core.dll

Provides useful helper methods for resolving mime-types from common formats.

C#
public static class MimeHelper

Inheritance #

object ← MimeHelper

Inherited Members #

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Properties #

NameDescription
DefaultMimeTypeGets or sets the MimeHelper default fallback mime-type.

Methods #

NameDescription
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.

Type to search the documentation and the API reference.