4 writes to size
System.ServiceModel (4)
System\ServiceModel\Dispatcher\QueryUtil.cs (4)
545
this.
size
= 0;
636
this.
size
= 0;
732
++this.
size
;
757
this.buffer[--this.
size
] = default(T);
19 references to size
System.ServiceModel (19)
System\ServiceModel\Dispatcher\QueryUtil.cs (19)
580
Fx.Assert(value >= this.
size
, "New capacity must be >= size");
602
return this.
size
;
668
Fx.Assert(index < this.
size
, "Index is greater than size");
699
Fx.Assert(index >= 0 && index <= this.
size
, "");
705
else if (this.buffer.Length == this.
size
)
708
T[] tmp = new T[this.
size
+ 1];
712
Array.Copy(this.buffer, 0, tmp, 1, this.
size
);
714
else if (index == this.
size
)
716
Array.Copy(this.buffer, 0, tmp, 0, this.
size
);
721
Array.Copy(this.buffer, index, tmp, index + 1, this.
size
- index);
728
Array.Copy(this.buffer, index, this.buffer, index + 1, this.
size
- index);
750
Fx.Assert(index >= 0 && index < this.
size
, "");
752
if (index < this.
size
- 1)
754
Array.Copy(this.buffer, index + 1, this.buffer, index, this.
size
- index - 1);
762
if (
size
== 0)
769
if (this.
size
<= 8)
771
return LinearSearch<K>(key, comparer, 0, this.
size
);
783
int high = this.
size
;
842
this.Capacity = this.
size
;