Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: ee0bc0d176
Fetching contributors…

Cannot retrieve contributors at this time

28 lines (23 sloc) 0.283 kb
using System;
public class LockTest
{
public class Test
{
public int val {
get {
return(v);
}
set {
v=value;
}
}
int v;
}
public static void Main() {
Test a=new Test();
lock(a) {
a.val=2;
}
Console.WriteLine("a is " + a.val);
}
}
Jump to Line
Something went wrong with that request. Please try again.