Table of Contents

Class GeminiContentTypeExtensions

Namespace
Uralstech.UGemini

Extensions for GeminiContentType.

public static class GeminiContentTypeExtensions
Inheritance
GeminiContentTypeExtensions

Methods

ContentType(string)

Converts a string MIME type to a GeminiContentType.

public static GeminiContentType ContentType(this string mimeType)

Parameters

mimeType string

The MIME type string.

Returns

GeminiContentType

The GeminiContentType equivalent.

Exceptions

NotImplementedException

Thrown if GeminiContentType does not have an equivalent MIME type to mimeType.

MimeType(GeminiContentType)

Converts a GeminiContentType to its MIME type.

public static string MimeType(this GeminiContentType enumValue)

Parameters

enumValue GeminiContentType

The GeminiContentType value.

Returns

string

The MIME type as a string.

Exceptions

NotImplementedException

Thrown if the MIME type of the enum value could not be found.