2 using System
.Runtime
.Remoting
.Contexts
;
4 [Synchronization (SynchronizationAttribute
.REQUIRES_NEW
)]
5 class CBO
: ContextBoundObject
8 Console
.WriteLine ("start value: {0}", T
.var);
9 if (T
.var != 0) return true;
11 Console
.WriteLine ("end value: {0}", T
.var);
12 return (T
.var != 100);
18 public static int var = 5;
30 Console
.WriteLine ("value in main context: {0}", var);