共用方式為


ITypeParameterSymbol.Variance 屬性

定義

如果有任何類型參數宣告,則為變異數批註。 類型參數可以宣告為 covariant (out) 、contravariant () in ,或兩者都未宣告。

public:
 property Microsoft::CodeAnalysis::VarianceKind Variance { Microsoft::CodeAnalysis::VarianceKind get(); };
public Microsoft.CodeAnalysis.VarianceKind Variance { get; }
member this.Variance : Microsoft.CodeAnalysis.VarianceKind
Public ReadOnly Property Variance As VarianceKind

屬性值

適用於