public int GetInternalPriority(int wantedPriority, ADClientAccessRule rule, out bool normalized)
        {
            int ruleRelativePosition = this.GetRuleRelativePosition(rule);
            int num = 0;

            if (ruleRelativePosition != -1)
            {
                this.ADClientAccessRules.RemoveAt(ruleRelativePosition);
            }
            return(this.GetInternalPriority(wantedPriority, rule.DatacenterAdminsOnly, out num, out normalized));
        }
 private int GetRuleRelativePosition(ADClientAccessRule rule)
 {
     for (int i = 0; i < this.ADClientAccessRules.Count; i++)
     {
         if (this.ADClientAccessRules[i].Identity.Equals(rule.Identity))
         {
             return(i);
         }
     }
     return(-1);
 }