The ContextStaticAttribute must be used for static members in a class when you don’t want those values to be shared by different contexts.
When one context changes the member value, the other context will not be affected by this change.
The syntax is pretty straightforward. As any other attribute, it’s just a matter of add it to the static member:
static int b = 123;