Table of Contents

Method TryGetWriterForExtension

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

TryGetWriterForExtension(string, out IDocumentWriter?)

Finds the writer registered for a file extension.

public bool TryGetWriterForExtension(string extension, out IDocumentWriter? writer)

Parameters

extension string

The extension, with or without a leading dot; case-insensitive.

writer IDocumentWriter

The matching writer, or null.

Returns

bool

true if a writer was found.