Reviving support for instrumentation in CSharpCodeVisitor

Fixes #42
nit: no need to recheck `generateInstrumentation` since `contentSpan` will only be non-`null` when that is `true`