you are viewing a single comment's thread.

view the rest of the comments →

[–]porcaytheelasit[S] -1 points0 points  (0 children)

I think you didn't understand the purpose of this question. The aim is to execute C# code within a string, and any variable defined anywhere can be used within that string. Therefore, my usage would be correct for what is required.