From the documentation:

A static field marked with ContextStaticAttribute is not shared between contexts. If the indicated static field is accessed on a different context, it will contain a different value. Use this attribute as it is, and do not derive from it.

The following example shows the syntax of this attribute:

[ContextStatic]
static int f=7;

Unfortunately it does not clarify what is meant by "context" in this case. Can someone give an example for when this attribute would be used?

Edit
Report