Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool CzyZawiera(List<Regula> listaRegul, Regula potencjalnaRegula)
- {
- bool zwrot = false;
- foreach (var pojedynczaRegula in listaRegul)
- {
- Zawieranie decyzja = pojedynczaRegula.CzyZawiera(pojedynczaRegula);
- if (decyzja == Zawieranie.Tak)
- {
- zwrot = true;
- }
- if (decyzja == Zawieranie.Równe)
- {
- pojedynczaRegula.support++;
- break;
- }
- }
- return zwrot;
- }
Add Comment
Please, Sign In to add comment