Table of Contents

Method TryGetReaderForExtension

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

TryGetReaderForExtension(string, out IDocumentReader?)

Finds the reader registered for a file extension.

public bool TryGetReaderForExtension(string extension, out IDocumentReader? reader)

Parameters

extension string

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

reader IDocumentReader

The matching reader, or null.

Returns

bool

true if a reader was found.