ITypeParameterSymbol.Variance 属性

定义

类型参数声明的方差批注(如果有)。 类型参数可以声明为协变 () out 、逆变 () 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

属性值

适用于