Table of Contents

Class MimeHelper

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

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

public static class MimeHelper

Inheritance

objectMimeHelper

Inherited Members

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

Properties

DefaultMimeType

Gets or sets the MimeHelper default fallback mime-type.

Methods

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.