ImportedNamespaceOrType 结构

定义

表示 INamespaceOrTypeSymbol 已导入的 ,以及声明导入的位置。 这对应于 using Namespace; C# 或 Visual Basic 中的 或 Imports TypeOrNamespaceusing static Type;

public readonly struct ImportedNamespaceOrType
type ImportedNamespaceOrType = struct
Public Structure ImportedNamespaceOrType
继承
ImportedNamespaceOrType

属性

DeclaringSyntaxReference

声明指令或Imports子句的using源中的位置。 对于项目级导入指令的 Visual Basic,或者对于直接通过 Usings提供的 C# 全局,可为 null。

NamespaceOrType

表示 INamespaceOrTypeSymbol 已导入的 ,以及声明导入的位置。 这对应于 using Namespace; C# 或 Visual Basic 中的 或 Imports TypeOrNamespaceusing static Type;

适用于