VisualBasicExtensions.GetSpecialType(Compilation, SpecialType) 方法

定义

获取当前编译中的特殊类型符号。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::CodeAnalysis::INamedTypeSymbol ^ GetSpecialType(Microsoft::CodeAnalysis::Compilation ^ compilation, Microsoft::CodeAnalysis::SpecialType typeId);
public static Microsoft.CodeAnalysis.INamedTypeSymbol GetSpecialType (this Microsoft.CodeAnalysis.Compilation compilation, Microsoft.CodeAnalysis.SpecialType typeId);
static member GetSpecialType : Microsoft.CodeAnalysis.Compilation * Microsoft.CodeAnalysis.SpecialType -> Microsoft.CodeAnalysis.INamedTypeSymbol
<Extension()>
Public Function GetSpecialType (compilation As Compilation, typeId As SpecialType) As INamedTypeSymbol

参数

compilation
Compilation

源编译对象。

typeId
SpecialType

要获取的 SpecialType。

返回

编译中指定类型的 NamedTypeSymbol;如果编译为 Null,则为 Null。

适用于