14 writes to m_permSet
mscorlib (14)
system\security\permissionset.cs (14)
139
m_permSet
= m_normalPermSet.SpecialUnion(m_unrestrictedPermSet);
144
m_permSet
= m_unrestrictedPermSet.SpecialUnion(m_normalPermSet);
163
m_permSet
= null;
176
m_permSet
= m_permSetSaved;
233
m_permSet
= new TokenBasedSet(permSet.m_permSet);
300
m_permSet
= null;
315
this.
m_permSet
= new TokenBasedSet();
531
m_permSet
= null;
968
pset.
m_permSet
= new TokenBasedSet();
1121
this.
m_permSet
= null;
1259
pset.
m_permSet
= new TokenBasedSet();
1663
this.
m_permSet
= permSetTemp.m_permSet;
1826
m_permSet
= new TokenBasedSet();
1934
m_permSet
= new TokenBasedSet();
123 references to m_permSet
mscorlib (123)
system\security\permissionset.cs (122)
160
if (
m_permSet
!= null)
161
m_permSet
.SpecialSplit(ref m_unrestrictedPermSet, ref m_normalPermSet, m_ignoreTypeLoadFailures);
162
m_permSetSaved =
m_permSet
;
231
if (permSet.
m_permSet
!= null)
233
m_permSet = new TokenBasedSet(permSet.
m_permSet
);
236
for (int i =
m_permSet
.GetStartingIndex(); i <=
m_permSet
.GetMaxUsedIndex(); i++)
238
Object obj =
m_permSet
.GetItem(i);
245
m_permSet
.SetItem(i, perm.Copy());
250
m_permSet
.SetItem(i, elem.Copy());
314
if (this.
m_permSet
== null)
323
if (
m_permSet
== null ||
m_permSet
.FastIsEmpty())
346
if (
m_permSet
== null ||
m_permSet
.FastIsEmpty())
358
if (
m_permSet
!= null)
359
count +=
m_permSet
.GetCount();
367
if (
m_permSet
== null)
369
Object obj =
m_permSet
.GetItem( index );
445
m_permSet
.SetItem( permToken.m_index, perm );
483
m_permSet
.SetItem( permToken.m_index, ip_union );
487
m_permSet
.SetItem( permToken.m_index, perm );
498
return (IPermission)
m_permSet
.RemoveItem( index ); // this cast is safe because the call to GetPermission will guarantee it is an IPermission
572
else if (this.
m_permSet
== null)
578
for (int i =
m_permSet
.GetStartingIndex(); i <= this.
m_permSet
.GetMaxUsedIndex(); ++i)
701
if (this.m_allPermissionsDecoded || this.
m_permSet
== null)
714
if (this.m_allPermissionsDecoded || this.
m_permSet
== null)
724
if (this.m_allPermissionsDecoded || this.
m_permSet
== null)
785
int maxMax = this.
m_permSet
== null ? -1 : this.
m_permSet
.GetMaxUsedIndex();
786
int otherMax = other.
m_permSet
== null ? -1 : other.
m_permSet
.GetMaxUsedIndex();
801
Object thisObj = this.
m_permSet
.GetItem( i );
807
Object otherObj = other.
m_permSet
.GetItem( i );
851
this.
m_permSet
.SetItem( i, newElem );
867
this.
m_permSet
.SetItem( i, newElem );
876
this.
m_permSet
.SetItem( i, otherPerm.Copy() );
892
this.
m_permSet
.SetItem( i, newElem );
899
this.
m_permSet
.SetItem( i, null );
904
this.
m_permSet
.SetItem( i, null );
925
this.
m_permSet
.SetItem( i, intersectPerm );
948
int thisMax = this.
m_permSet
== null ? -1 : this.
m_permSet
.GetMaxUsedIndex();
949
int otherMax = other.
m_permSet
== null ? -1 : other.
m_permSet
.GetMaxUsedIndex();
973
Object thisObj = this.
m_permSet
.GetItem( i );
979
Object otherObj = other.
m_permSet
.GetItem( i );
1014
pset.
m_permSet
.SetItem( i, newElem );
1028
pset.
m_permSet
.SetItem( i, newElem );
1038
pset.
m_permSet
.SetItem( i, otherPerm.Copy() );
1054
pset.
m_permSet
.SetItem( i, newElem );
1064
pset.
m_permSet
.SetItem( i, thisPerm.Copy() );
1086
pset.
m_permSet
.SetItem( i, intersectPerm );
1129
if (other.
m_permSet
!= null)
1131
maxMax = other.
m_permSet
.GetMaxUsedIndex();
1139
Object thisObj = this.
m_permSet
.GetItem( i );
1145
Object otherObj = other.
m_permSet
.GetItem( i );
1173
this.
m_permSet
.SetItem( i, newElem );
1183
this.
m_permSet
.SetItem( i, otherElem.Copy() );
1192
this.
m_permSet
.SetItem( i, otherPerm.Copy() );
1218
this.
m_permSet
.SetItem( i, unionPerm );
1258
maxMax = this.
m_permSet
.GetMaxUsedIndex() > other.
m_permSet
.GetMaxUsedIndex() ? this.
m_permSet
.GetMaxUsedIndex() : other.
m_permSet
.GetMaxUsedIndex();
1265
Object thisObj = this.
m_permSet
.GetItem( i );
1271
Object otherObj = other.
m_permSet
.GetItem( i );
1291
pset.
m_permSet
.SetItem( i, newElem );
1300
pset.
m_permSet
.SetItem( i, otherElem.Copy() );
1310
pset.
m_permSet
.SetItem( i, otherPerm.Copy() );
1320
pset.
m_permSet
.SetItem( i, thisElem.Copy() );
1329
pset.
m_permSet
.SetItem( i, thisPerm.Copy() );
1350
pset.
m_permSet
.SetItem( i, unionPerm );
1372
if (this.
m_permSet
== null || denied.
m_permSet
== null)
1375
int maxIndex = denied.
m_permSet
.GetMaxUsedIndex() > this.
m_permSet
.GetMaxUsedIndex() ? this.
m_permSet
.GetMaxUsedIndex() : denied.
m_permSet
.GetMaxUsedIndex();
1377
IPermission deniedPerm = denied.
m_permSet
.GetItem(i) as IPermission;
1381
IPermission thisPerm = this.
m_permSet
.GetItem(i) as IPermission;
1384
denied.
m_permSet
.SetItem(i, null);
1390
this.
m_permSet
.SetItem(i, null);
1391
denied.
m_permSet
.SetItem(i, null);
1408
Object thisObj = this.
m_permSet
.GetItem( token.m_index );
1440
int maxIndex = Math.Max( this.
m_permSet
.GetMaxUsedIndex(), other.
m_permSet
.GetMaxUsedIndex() );
1444
IPermission thisPerm = (IPermission)this.
m_permSet
.GetItem( i );
1445
IPermission otherPerm = (IPermission)other.
m_permSet
.GetItem( i );
1478
if (this.
m_permSet
!= null)
1482
int maxIndex = this.
m_permSet
.GetMaxUsedIndex();
1484
for (int i =
m_permSet
.GetStartingIndex(); i <= maxIndex; ++i)
1486
IPermission perm = (IPermission)this.
m_permSet
.GetItem( i );
1527
if (this.
m_permSet
!= null)
1530
for (int i =
m_permSet
.GetStartingIndex(); i <= this.
m_permSet
.GetMaxUsedIndex(); ++i)
1646
if (this.
m_permSet
!= null)
1648
for (int i =
m_permSet
.GetStartingIndex(); i <= this.
m_permSet
.GetMaxUsedIndex(); ++i)
1650
Object obj = this.
m_permSet
.GetItem(i);
1663
this.m_permSet = permSetTemp.
m_permSet
;
1691
if (
m_permSet
== null)
1697
int maxIndex =
m_permSet
.GetMaxUsedIndex();
1825
if (
m_permSet
== null)
1828
if (this.
m_permSet
.GetItem( token.m_index ) != null)
1835
if (this.
m_permSet
.GetItem( token.m_index ) is IPermission)
1836
permInSlot = (IPermission)this.
m_permSet
.GetItem( token.m_index );
1838
permInSlot = CreatePerm( (SecurityElement)this.
m_permSet
.GetItem( token.m_index ) );
1849
this.
m_permSet
.SetItem( token.m_index, objectToInsert );
1933
if (
m_permSet
== null)
1937
if (this.
m_permSet
.GetItem( token.m_index ) != null)
1942
if (this.
m_permSet
.GetItem( token.m_index ) is IPermission)
1943
permInSlot = (IPermission)this.
m_permSet
.GetItem( token.m_index );
1945
permInSlot = CreatePerm( this.
m_permSet
.GetItem( token.m_index ) );
1959
this.
m_permSet
.SetItem( token.m_index, objectToInsert );
2115
m_permSet
.SetItem(index, perm);
2192
if (this.
m_permSet
!= null)
2194
int maxIndex = this.
m_permSet
.GetMaxUsedIndex();
2196
for (int i =
m_permSet
.GetStartingIndex(); i <= maxIndex; ++i)
2198
Object obj = this.
m_permSet
.GetItem( i );
2278
if (this.
m_permSet
!= null)
system\security\permissionsetenumerator.cs (1)
62
enm = new TokenBasedSetEnumerator(permSet.
m_permSet
);