14 references to switches
System (14)
compmod\system\diagnostics\Switch.cs (14)
59
lock (
switches
) {
61
switches
.Add(new WeakReference(this));
68
lock (
switches
) {
70
List<WeakReference> buffer = new List<WeakReference>(
switches
.Count);
71
for (int i = 0; i <
switches
.Count; i++) {
72
Switch s = ((Switch)
switches
[i].Target);
74
buffer.Add(
switches
[i]);
77
if (buffer.Count <
switches
.Count) {
78
switches
.Clear();
79
switches
.AddRange(buffer);
80
switches
.TrimExcess();
266
lock (
switches
) {
268
for (int i=0; i<
switches
.Count; i++) {
269
Switch swtch = ((Switch)
switches
[i].Target);