Script directive in C#

Hi,

in Javascript a script directive can be added by for example "@script ExecuteInEditMode". How can I do the same in C#? What is the correct syntax?

Thanks in advance, Vudu

In C# these are called attributes. You specify them with brackets:

[ExecuteInEditMode()]
public class foo : MonoBehaviour {
}

There is also a Question/Answer that covers the Syntax Differences in C# versus Javascript, which covers this (as of now - I just added it :).