TextualFormats

TextualFormats structure

Encapsulates all textual (text-based) formats, including markup (XML, HTML) and others. Includes the following formats: Html, Txt, Xml. Md, Json.

public struct TextualFormats : IDocumentFormat, IEquatable<TextualFormats>

Properties

Name Description
Extension { get; } Returns an extension (without leading dot character) of this textual format in lower case
Mime { get; } Returns a MIME code for this format
Name { get; } Returns a formal full name of this textual format

Methods

Name Description
static FromExtension(string) Returns instance of TextualFormats structure, associated to specified filename extension, or throws an exception, if extension cannot be properly parsed
Equals(IDocumentFormat) Determines whether this instance is equal to the other specified IDocumentFormat instance
override Equals(object) Determines whether this instance is equal to the other specified object, that is presumably of boxed TextualFormats
Equals(TextualFormats) Determines whether this instance is equal to the other specified TextualFormats instance
override GetHashCode() Returns a hash-code, that is immutable for this instance
override ToString() Returns the name of this particular format, same as ‘Name’ property
operator == Checks two given TextualFormats instances on equality
operator != Checks two given TextualFormats instances on inequality

Fields

Name Description
static readonly Chm Microsoft Compiled HTML Help is a Microsoft proprietary online help binary format, consisting of a collection of HTML pages, an index and other navigation tools. Learn more about this file format here.
static readonly Html HyperText Markup Language document (HTML) is the extension for web pages created for display in browsers. Learn more about this file format here.
static readonly Json JSON (JavaScript Object Notation) is an open standard file format for sharing data that uses human-readable text to store and transmit data. Learn more about this file format here.
static readonly Md Markdown is a lightweight markup language for creating formatted text using a plain-text editor. Learn more about this file format here.
static readonly Mhtml MIME encapsulation of aggregate HTML documents is a web page archive format used to combine, in a single computer file, the HTML code and its companion resources. Learn more about this file format here.
static readonly Txt Plain Text Document (TXT) represents a text document that contains plain text in the form of lines. Learn more about this file format here.
static readonly Xml eXtensible Markup Language document (XML) that is similar to HTML but different in using tags for defining objects. Learn more about this file format here.
static readonly All Returns an internal class, that provides enumerable possibilities over all existing Textual formats.

Other Members

Name Description
class AllEnumerable Implements IEnumerable generic interface, that enables a ‘foreach’ possibility for the TextualFormats type

See Also