detect console mode

Options

I am using a linqpad script and i have this line Console.Title=...

Is there a way to detect that i am running in "program" mode so that i can skip this step when i am using the LinqPad application rather than the console?

Comments