Reviving support for instrumentation in CSharpCodeVisitor

Fixes #42
Make a helper method to get this value, you do the same logic here and in ResolveUrlChunk visit method.