コード例 #1
0
        public PermissionResult this[string ruleName]
        {
            get
            {
                PermissionResult result = null;
                foreach (PermissionResult testResult in _resultList)
                {
                    if (testResult.RuleName == ruleName)
                    {
                        result = testResult;
                        break;
                    }
                }

                return(result);
            }
        }
コード例 #2
0
 public void Add(PermissionResult result)
 {
     _resultList.Add(result);
 }