Example of a namespace retrieving:
var @ns = new Module
{
	new Namespace("BlueITSystems.Hello.World")
	{
		new Class("BlueITSystems")
	}
}
.GetSemanticModel()
.GetDeclaredSymbol(module.Namespace.Classes.Single())
.ContainingNamespace;

Call to Console.WriteLine(@ns) results in:
BlueITSystems.Hello.World

Last edited Jun 2, 2013 at 8:24 PM by JavedSaqib, version 3

Comments

No comments yet.