public PermissionResult this[string ruleName] { get { PermissionResult result = null; foreach (PermissionResult testResult in _resultList) { if (testResult.RuleName == ruleName) { result = testResult; break; } } return(result); } }
public void Add(PermissionResult result) { _resultList.Add(result); }