Share via


VisualBasicExtensions.RootNamespace(Compilation) Method

Definition

Gets the compilation RootNamespace property.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::CodeAnalysis::INamespaceSymbol ^ RootNamespace(Microsoft::CodeAnalysis::Compilation ^ compilation);
public static Microsoft.CodeAnalysis.INamespaceSymbol RootNamespace (this Microsoft.CodeAnalysis.Compilation compilation);
static member RootNamespace : Microsoft.CodeAnalysis.Compilation -> Microsoft.CodeAnalysis.INamespaceSymbol
<Extension()>
Public Function RootNamespace (compilation As Compilation) As INamespaceSymbol

Parameters

compilation
Compilation

A source Compilation object.

Returns

A NamespaceSymbol instance, for the compilation instance RootNamespace property. otherwise Null if compilation instance is Null.

Applies to