ITypeSymbol.WithNullableAnnotation(NullableAnnotation) 方法

定义

返回与此类型相同的类型,但具有给定可为 null 的批注。

public Microsoft.CodeAnalysis.ITypeSymbol WithNullableAnnotation (Microsoft.CodeAnalysis.NullableAnnotation nullableAnnotation);
abstract member WithNullableAnnotation : Microsoft.CodeAnalysis.NullableAnnotation -> Microsoft.CodeAnalysis.ITypeSymbol
Public Function WithNullableAnnotation (nullableAnnotation As NullableAnnotation) As ITypeSymbol

参数

nullableAnnotation
NullableAnnotation

要使用的可为空批注

返回

适用于