The following example shows you how to get the script version and use it to make decisions:
public void MyEvent() {
// ...
string version = _cc.GetVersion();
switch( version ) {
case "My Version 1":
// ...
break;
case "My Version 2":
// ...
break;
}
}