Add(IAnalyzerCollection, string, Type) Method
Adds an analyzer by type, inferring the name from the type name and removing a trailing "Analyzer" from the type name.
Namespace
Statiq.Common
Containing Type
IAnalyzerCollectionExtensions

Syntax

public static void Add(this IAnalyzerCollection analyzers, string name, Type analyzerType)

Parameters

Name Type Description
analyzers IAnalyzerCollection The analyzers.
name string The name of the analyzer.
analyzerType Type The type of the analyzer to add (must implement IAnalyzer).