Open sandboxFocus

Method WithExtensions

WithExtensions(ImmutableArray<IDiagnosticExtension>)

Returns a copy of this diagnostic with the specified extensions.

Declaration
public IDiagnostic WithExtensions(ImmutableArray<IDiagnosticExtension> extensions)
Parameters
Type Name Description
ImmutableArray<IDiagnosticExtension> extensions

The extensions to associate with the diagnostic.

Returns
Type Description
IDiagnostic

A new diagnostic instance with the specified extensions.

Implements