示例#1
0
 internal void RemoveAces <T> (RemoveAcesCallback <T> callback)
     where T : GenericAce
 {
     for (int i = 0; i < raw_acl.Count;)
     {
         if (raw_acl [i] is T && callback((T)raw_acl [i]))
         {
             raw_acl.RemoveAce(i);
         }
         else
         {
             i++;
         }
     }
 }
示例#2
0
文件: CommonAcl.cs 项目: adbre/mono
		void RemoveAces (RemoveAcesCallback callback)
		{
			for (int i = 0; i < raw_acl.Count; ) {
				if (callback (raw_acl [i])) {
					raw_acl.RemoveAce (i);
				} else {
					i ++;
				}
			}
		}