AdditionalTextValueProvider<TValue> Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Współpracuj z nami w serwisie GitHub
Źródło tej zawartości można znaleźć w witrynie GitHub, gdzie można również tworzyć i przeglądać problemy i żądania ściągnięcia. Więcej informacji znajdziesz w naszym przewodniku dla współtwórców.