Delen via


AdditionalTextValueProvider<TValue> Constructor

Definition

Provides custom values associated with AdditionalText instances using the given computeValue.

public AdditionalTextValueProvider (Func<Microsoft.CodeAnalysis.AdditionalText,TValue> computeValue, System.Collections.Generic.IEqualityComparer<Microsoft.CodeAnalysis.AdditionalText>? additionalTextComparer = default);
new Microsoft.CodeAnalysis.Diagnostics.AdditionalTextValueProvider<'Value> : Func<Microsoft.CodeAnalysis.AdditionalText, 'Value> * System.Collections.Generic.IEqualityComparer<Microsoft.CodeAnalysis.AdditionalText> -> Microsoft.CodeAnalysis.Diagnostics.AdditionalTextValueProvider<'Value>
Public Sub New (computeValue As Func(Of AdditionalText, TValue), Optional additionalTextComparer As IEqualityComparer(Of AdditionalText) = Nothing)

Parameters

computeValue
Func<AdditionalText,TValue>

Delegate to compute the value associated with a given AdditionalText instance.

additionalTextComparer
IEqualityComparer<AdditionalText>

Optional equality comparer to determine equivalent AdditionalText instances that have the same value. If no comparer is provided, then Default is used by default.

Applies to