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