This provides programmer friendly view of your application via the .NET Compiler Platform (code named Roslyn) from Microsoft. This is an early, experimental release.
Install-Package RoslynDOM -Pre
You can find more info on [my blog] (http://msmvps.com/blogs/kathleen/default.aspx)
string cSharpCode = File.ReadAllText("something.cs");
IRoot root = RDomFactory.GetRootFromString(csharpCode);
INamespace nameSpace = root.Namespaces.First();
string name = nameSpace.Name;
Ask on Twitter: @kathleendollard