using System; using MyNamespace = MyCompany.MyProject; var name = SyntaxFactory.AliasQualifiedName( SyntaxFactory.IdentifierName("MyNamespace"), SyntaxFactory.IdentifierName("MyClass") ); // Result: MyNamespace.MyClass
using System; using MyNamespace = MyCompany.MyProject; var name = SyntaxFactory.AliasQualifiedName( SyntaxFactory.IdentifierName("global"), SyntaxFactory.IdentifierName("System") ); // Result: global::SystemIn this example, we use the AliasQualifiedName to create a qualified name for the namespace "System", which is a global namespace. We use the "global" keyword to specify that we want to use the global namespace, and not any namespace that may be defined in our project. Package library: Microsoft.CodeAnalysis.CSharp.