C# script does not function anymore

It looks like some of the default using statements have been removed from the c# script editor. (@DavidRutten is this the case? I imagine this could break a lot of scripts)

In any case, to fix, just add these two lines where indicated:

image

Also, your definition was configured slightly wrong - should be like this:
image