4 writes to locations
System.Activities (4)
System\Activities\Runtime\LocationEnvironment.cs (4)
64this.locations = new Location[capacity]; 72set { this.locations = value; } 555this.locations = new Location[] { this.singleLocation }; 597this.locations = newLocations;
46 references to locations
System.Activities (46)
System\Activities\Runtime\LocationEnvironment.cs (46)
71get { return this.locations; } 268else if (this.locations != null) 270for (int i = 0; i < this.locations.Length; i++) 272Location location = this.locations[i]; 355Fx.Assert((locationReference.Id == 0 && this.locations == null) || (locationReference.Id >= 0 && this.locations != null && locationReference.Id < this.locations.Length), "The environment should have been created with the appropriate capacity."); 360if (this.locations == null) 369Fx.Assert(this.locations[locationReference.Id] == null || this.locations[locationReference.Id] is DummyLocation, "We should not have had a location at the spot we are replacing."); 371this.locations[locationReference.Id] = location; 382Fx.Assert(id >= 0 && ((this.locations == null && id == 0) || (this.locations != null && id < this.locations.Length)), "Id needs to be within bounds."); 384if (this.locations == null) 390return this.locations[id]; 397if (this.locations == null) 407for (int i = 0; i < this.locations.Length; i++) 409Location referenceLocation = this.locations[i]; 414CollapseTemporaryResolutionLocation(ref this.locations[i]); 432else if (this.locations != null) 434for (int i = 0; i < this.locations.Length; i++) 436if (this.locations[i] == location) 438CollapseTemporaryResolutionLocation(ref this.locations[i]); 451if (this.locations == null) 460if (this.locations.Length > id) 462value = this.locations[id]; 488if (id == 0 && targetEnvironment.locations == null) 492else if (targetEnvironment.locations != null && targetEnvironment.locations.Length > id) 494value = targetEnvironment.locations[id]; 543if (this.locations == null) 562actualLocationCount = this.locations.Length; 618Fx.Assert(this.locations != null && this.singleLocation == null, "Caller should have copied singleLocation into locations array"); 622newLocations[entry.NewOffset] = this.locations[entry.OldOffset]; 632Fx.Assert(this.locations != null && this.locations.Length > i, "locations must be non-null and index i must be within the range of locations."); 633newLocations[i] = this.locations[i]; 689Fx.Assert(this.locations != null && this.singleLocation == null, "Caller should have copied singleLocation into locations array"); 693newLocations[newVariablesOffset + entry.NewOffset] = this.locations[oldVariablesOffset + entry.OldOffset]; 704Fx.Assert(this.locations != null && this.locations.Length > oldVariablesOffset + i, "locations must be non-null and index i + oldVariableOffset must be within the range of locations."); 706newLocations[newVariablesOffset + i] = this.locations[oldVariablesOffset + i]; 715newLocations[newLocations.Length - i] = this.locations[this.locations.Length - i]; 771Location location = this.locations[i + offset];