SourceTextValueProvider<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 SourceText instances using the given computeValue
.
public SourceTextValueProvider (Func<Microsoft.CodeAnalysis.Text.SourceText,TValue> computeValue, System.Collections.Generic.IEqualityComparer<Microsoft.CodeAnalysis.Text.SourceText> sourceTextComparer = default);
public SourceTextValueProvider (Func<Microsoft.CodeAnalysis.Text.SourceText,TValue> computeValue, System.Collections.Generic.IEqualityComparer<Microsoft.CodeAnalysis.Text.SourceText>? sourceTextComparer = default);
new Microsoft.CodeAnalysis.Diagnostics.SourceTextValueProvider<'Value> : Func<Microsoft.CodeAnalysis.Text.SourceText, 'Value> * System.Collections.Generic.IEqualityComparer<Microsoft.CodeAnalysis.Text.SourceText> -> Microsoft.CodeAnalysis.Diagnostics.SourceTextValueProvider<'Value>
Public Sub New (computeValue As Func(Of SourceText, TValue), Optional sourceTextComparer As IEqualityComparer(Of SourceText) = Nothing)
Parameters
- computeValue
- Func<SourceText,TValue>
Delegate to compute the value associated with a given SourceText instance.
- sourceTextComparer
- IEqualityComparer<SourceText>
Optional equality comparer to determine equivalent SourceText instances that have the same value. If no comparer is provided, then Microsoft.CodeAnalysis.Text.SourceTextComparer is used by default.
Applies to
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET