Example #1
0
        internal void CheckDecoded(PermissionSet demandedSet)
        {
            Contract.Assert(demandedSet != null, "Expected non-null value");

            if (this.m_allPermissionsDecoded || this.m_permSet == null)
                return;

            PermissionSetEnumeratorInternal enumerator = demandedSet.GetEnumeratorInternal();

            while (enumerator.MoveNext())
            {
                CheckDecoded(enumerator.GetCurrentIndex());
            }
        }
 internal void CheckDecoded(PermissionSet demandedSet)
 {
     if (!this.m_allPermissionsDecoded && (this.m_permSet != null))
     {
         PermissionSetEnumeratorInternal enumeratorInternal = demandedSet.GetEnumeratorInternal();
         while (enumeratorInternal.MoveNext())
         {
             this.CheckDecoded(enumeratorInternal.GetCurrentIndex());
         }
     }
 }