Dear Anish,
I suspect that the reason for your problems with the
switch
statement is the version of your
Script.NET
.
I investigate a bit and found that getting the latest version is not very easy.
I also tried the
switch
statement with the version of the library from
this[
^] article and meet the same problem as yours.
The download link for the latest version is
here[
^], but it is not working! :(
I would suggest you to download some of the latest example applications from
here[
^] and use the library that ships with the downloaded example.
From the examples link, I've downloaded the
Lesson3.zip example (it comes with ScriptDotNet.dll, version: 1.1.0.0).
There are no problems with
switch
statement if you test it with this library.
I hope this helps. :)
Regards