Compartir a través de


AdditionalTextValueProvider<TValue> Constructor

Definición

Proporciona valores personalizados asociados a AdditionalText instancias mediante el especificado 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)

Parámetros

computeValue
Func<AdditionalText,TValue>

Delegar para calcular el valor asociado a una instancia determinada AdditionalText .

additionalTextComparer
IEqualityComparer<AdditionalText>

Comparador de igualdad opcional para determinar instancias equivalentes AdditionalText que tienen el mismo valor. Si no se proporciona ningún comparador, Default se usa de forma predeterminada.

Se aplica a