SyntaxTreeValueProvider<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 values associated with SyntaxTree instances using the given computeValue
.
public SyntaxTreeValueProvider (Func<Microsoft.CodeAnalysis.SyntaxTree,TValue> computeValue, System.Collections.Generic.IEqualityComparer<Microsoft.CodeAnalysis.SyntaxTree> syntaxTreeComparer = default);
public SyntaxTreeValueProvider (Func<Microsoft.CodeAnalysis.SyntaxTree,TValue> computeValue, System.Collections.Generic.IEqualityComparer<Microsoft.CodeAnalysis.SyntaxTree>? syntaxTreeComparer = default);
new Microsoft.CodeAnalysis.Diagnostics.SyntaxTreeValueProvider<'Value> : Func<Microsoft.CodeAnalysis.SyntaxTree, 'Value> * System.Collections.Generic.IEqualityComparer<Microsoft.CodeAnalysis.SyntaxTree> -> Microsoft.CodeAnalysis.Diagnostics.SyntaxTreeValueProvider<'Value>
Public Sub New (computeValue As Func(Of SyntaxTree, TValue), Optional syntaxTreeComparer As IEqualityComparer(Of SyntaxTree) = Nothing)
Parameters
- computeValue
- Func<SyntaxTree,TValue>
Delegate to compute the value associated with a given SyntaxTree instance.
- syntaxTreeComparer
- IEqualityComparer<SyntaxTree>
Optional equality comparer to determine equivalent SyntaxTree instances that have the same value. If no comparer is provided, then Microsoft.CodeAnalysis.SyntaxTreeComparer is used by default.
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET