4 writes to currentScope
System.Xml (4)
System\Xml\Serialization\CodeGenerator.cs (4)
98this.currentScope = new LocalScope(); 123currentScope = null; 217this.currentScope = newScope; 224this.currentScope = this.currentScope.parent;
17 references to currentScope
System.Xml (17)
System\Xml\Serialization\CodeGenerator.cs (17)
143System.Diagnostics.Debug.Assert(currentScope != null && currentScope.ContainsKey(name)); 144return currentScope[name]; 189if (currentScope != null && currentScope.TryGetValue(name, out loc)) { 216LocalScope newScope = new LocalScope(this.currentScope); 222Debug.Assert(this.currentScope.parent != null); 223this.currentScope.AddToFreeLocals(freeLocals); 224this.currentScope = this.currentScope.parent; 249Debug.Assert(!currentScope.ContainsKey(name)); 256currentScope[name] = local; 262if (!currentScope.TryGetValue(name, out local)) 1215Debug.Assert(currentScope.ContainsKey(name)); 1216LocalBuilder local = currentScope[name]; 1222if (!currentScope.TryGetValue(name, out local)) { 1234Debug.Assert(currentScope.ContainsKey(name)); 1235LocalBuilder local = currentScope[name];