Table of Contents

Method NormalizeExtension

Namespace
DocWright.Core.Formats
Assembly
DocWright.Core.dll

NormalizeExtension(string)

Normalizes an extension to lower-case invariant form with a leading dot.

public static string NormalizeExtension(string extension)

Parameters

extension string

The extension, with or without a leading dot.

Returns

string

The normalized extension.

Exceptions

ArgumentException

The extension is null, empty or only a dot.