共用方式為


AdditionalTextValueProvider<TValue> 建構函式

定義

使用指定的 computeValue 提供與 AdditionalText 實例相關聯的自訂值。

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)

參數

computeValue
Func<AdditionalText,TValue>

委派以計算與指定 AdditionalText 實例相關聯的值。

additionalTextComparer
IEqualityComparer<AdditionalText>

選擇性的相等比較子,可判斷具有相同值的對等 AdditionalText 實例。 如果未提供任何比較子, Default 則預設會使用 。

適用於