7 writes to m_buckets
System.Core (7)
System\Collections\Generic\HashSet.cs (7)
171
m_buckets
= (int[])source.m_buckets.Clone();
402
m_buckets
= new int[capacity];
417
m_buckets
= null;
920
m_buckets
= null;
953
m_buckets
= newBuckets;
982
m_buckets
= new int[size];
1035
m_buckets
= newBuckets;
43 references to m_buckets
System.Core (43)
System\Collections\Generic\HashSet.cs (43)
167
int capacity = source.
m_buckets
.Length;
171
m_buckets = (int[])source.
m_buckets
.Clone();
241
Debug.Assert(
m_buckets
!= null, "m_buckets was null but m_lastIndex > 0");
246
Array.Clear(
m_buckets
, 0,
m_buckets
.Length);
260
if (
m_buckets
!= null) {
263
for (int i =
m_buckets
[hashCode %
m_buckets
.Length] - 1; i >= 0; i = m_slots[i].next) {
288
if (
m_buckets
!= null) {
290
int bucket = hashCode %
m_buckets
.Length;
292
for (int i =
m_buckets
[bucket] - 1; i >= 0; last = i, i = m_slots[i].next) {
296
m_buckets
[bucket] = m_slots[i].next + 1;
374
info.AddValue(CapacityName,
m_buckets
== null ? 0 :
m_buckets
.Length);
375
if (
m_buckets
!= null) {
452
if (
m_buckets
!= null) {
925
Debug.Assert(
m_buckets
!= null, "m_buckets was null but m_count > 0");
978
Debug.Assert(
m_buckets
== null, "Initialize was called but m_buckets was non-null");
994
Debug.Assert(
m_buckets
!= null, "IncreaseCapacity called on a set with no elements");
1013
Contract.Assert(
m_buckets
!= null, "SetCapacity called on a set with no elements");
1045
if (
m_buckets
== null) {
1050
int bucket = hashCode %
m_buckets
.Length;
1054
for (int i =
m_buckets
[hashCode %
m_buckets
.Length] - 1; i >= 0; i = m_slots[i].next) {
1072
bucket = hashCode %
m_buckets
.Length;
1079
m_slots[index].next =
m_buckets
[bucket] - 1;
1080
m_buckets
[bucket] = index + 1;
1087
SetCapacity(
m_buckets
.Length, true);
1097
int bucket = hashCode %
m_buckets
.Length;
1109
m_slots[index].next =
m_buckets
[bucket] - 1;
1110
m_buckets
[bucket] = index + 1;
1177
Debug.Assert(
m_buckets
!= null, "m_buckets shouldn't be null; callers should check first");
1218
Debug.Assert(
m_buckets
!= null, "m_buckets was null; callers should check first");
1221
for (int i =
m_buckets
[hashCode %
m_buckets
.Length] - 1; i >= 0; i = m_slots[i].next) {
1326
Debug.Assert(
m_buckets
!= null, "m_buckets is null, callers should have checked");
1329
int bucket = hashCode %
m_buckets
.Length;
1330
for (int i =
m_buckets
[hashCode %
m_buckets
.Length] - 1; i >= 0; i = m_slots[i].next) {
1345
bucket = hashCode %
m_buckets
.Length;
1352
m_slots[index].next =
m_buckets
[bucket] - 1;
1353
m_buckets
[bucket] = index + 1;
1402
Debug.Assert((
m_buckets
!= null) && (m_count > 0), "m_buckets was null but count greater than 0");