EBookFormats

EBookFormats structure

Encapsulates all eBook formats. Includes the following file types: Mobi, Epub, Azw3

public struct EBookFormats : IDocumentFormat, IEquatable<EBookFormats>

Properties

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

Methods

Name Description
static FromExtension(string) Returns instance of EBookFormats structure, associated to specified filename extension, or throws an exception, if extension cannot be properly parsed
Equals(EBookFormats) Determines whether this instance is equal to the other specified EBookFormats instance
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 EBookFormats
override GetHashCode() Returns a hash-code, that is immutable for this instance
override ToString() Returns a format name of this format
operator == Checks two given EBookFormats instances on equality
operator != Checks two given EBookFormats instances on inequality

Fields

Name Description
static readonly Azw3 AZW3, also known as Kindle Format 8 (KF8), is the modified version of the AZW ebook digital file format developed for Amazon Kindle devices. The format is an enhancement to older AZW files. Learn more about this file format here.
static readonly Epub Electronic Publication (IDPF ePub) format is an e-book file format that provide a standard digital publication format for publishers and consumers. Learn more about this file format here.
static readonly Mobi MOBI is the name given to the format developed for the MobiPocket Reader. Also called PRC, AZW. It is currently used by Amazon with a slightly different DRM scheme and called AZW. Learn more about this file format here.
static readonly All Returns an internal class, that provides enumerable possibilities over all existing EBook formats

Other Members

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

Remarks

Learn more about Mobi format here, about AZW3 format here, and about ePub format here.

See Also