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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.