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:
Also, your definition was configured slightly wrong - should be like this: