before @{ var inCSharp = true; xml } after @{ var inCSharp = true; xml } code: @code { var inCSharp = true; xml }