C# -> code to look at code-Collection of common programming errors

Depends on what you’re trying to do. If you’re looking to analyze your .NET executable, you can use one of the free decompilation tools available (dotPeek, ILSpy or even .NET Reflector).

However, if you’re looking for this information at runtime, that is, you want for example to print all the types and methods executing in your application, you can either use Reflection (here’s a good tutorial on CodeProject), or use an AOP solution, like PostSharp, to print the names of all executing methods (see the Tracing example).