Here I am using the class
var compiler = new Compiler(); compiler.Text = @"using System; namespace HelloWorldApplication { class HelloWorld { static void Main(string[] args) { /* my first program in C# */ Console.WriteLine(Hello World); Console.ReadKey(); } } }"; compiler.IsParenthesesBalanced();