3 writes to _values
System.Data (3)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelPropertyValueCollection.cs (3)
45
_values
= new List<ModelPropertyIndexer>();
104
_values
= new List<ModelPropertyIndexer>();
127
_values
= new List<ModelPropertyIndexer>();
46 references to _values
System.Data (46)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelPropertyValueCollection.cs (46)
49
_values
.Add(CreateModelPropertyIndexer(item, i++));
66
return
_values
== null ? 0 :
_values
.Count;
78
return
_values
[index].PropertyValue;
102
if (
_values
== null)
125
if (
_values
== null)
147
if (
_values
.Count > index &&
148
object.Equals(
_values
[index].ModelItem, item))
150
return
_values
[index].PropertyValue;
154
_values
.Insert(index, indexer);
157
for (int i = index + 1; i <
_values
.Count; i++)
159
_values
[i].Index++;
178
if (
_values
== null)
183
for (int i = 0; i <
_values
.Count; i++)
185
if (
_values
[i].PropertyValue == propertyValue) {
200
Fx.Assert(
_values
!= null, "_values parameter should not be null");
202
for (int i = 0; i <
_values
.Count; i++)
204
if (
_values
[i].ModelItem == item) {
249
ModelPropertyIndexer indexer =
_values
[index];
252
_values
.RemoveAt(index);
253
for (int i = index; i <
_values
.Count; i++)
255
_values
[i].Index--;
265
Fx.Assert(
_values
!= null, "_values parameter should not be null");
269
for (int i = 0; i <
_values
.Count; i++)
271
if (
_values
[i].ModelItem == oldItem) {
276
this.OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Replace,
_values
[i].PropertyValue));
287
_values
.Clear();
308
ModelPropertyIndexer currentIndexer =
_values
[currentIndex];
309
ModelPropertyIndexer newIndexer =
_values
[newIndex];
356
ModelPropertyIndexer currentIndexer =
_values
[currentIndex];
357
ModelPropertyIndexer newIndexer =
_values
[newIndex];
362
_values
.RemoveAt(newIndex);
363
_values
.RemoveAt(currentIndex);
367
_values
.RemoveAt(currentIndex);
368
_values
.RemoveAt(newIndex);
374
_values
.Insert(currentIndex, newIndexer);
375
_values
.Insert(newIndex, currentIndexer);
379
_values
.Insert(newIndex, currentIndexer);
380
_values
.Insert(currentIndex, newIndexer);
425
if (
_values
== null)
430
foreach (ModelPropertyIndexer value in
_values
)
502
if (
_values
== null ||
_values
.Count <= index || index < 0)
511
if ((
_values
== null && index != 0) ||
512
(
_values
!= null &&
_values
.Count < index) ||