hibbzboi

CzyZawiera

May 16th, 2016
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.60 KB | None | 0 0
  1.  bool CzyZawiera(List<Regula> listaRegul, Regula potencjalnaRegula)
  2.         {
  3.             bool zwrot = false;
  4.  
  5.             foreach (var pojedynczaRegula in listaRegul)
  6.             {
  7.                 Zawieranie decyzja = pojedynczaRegula.CzyZawiera(pojedynczaRegula);
  8.  
  9.                 if (decyzja == Zawieranie.Tak)
  10.                 {
  11.                     zwrot = true;
  12.                 }
  13.  
  14.                 if (decyzja == Zawieranie.Równe)
  15.                 {
  16.                     pojedynczaRegula.support++;
  17.                     break;
  18.                 }
  19.             }
  20.  
  21.             return zwrot;
  22.         }
Add Comment
Please, Sign In to add comment