private int isBrecket(int wordNomber, ISentence sent, LongOperationAttribut attr) { string word = sent.get_Word(wordNomber).WordStr; for (int i = 0; i < attr.attributSequence.Count; i++) { if (attr.attributSequence[i] is Brackets) { Brackets br = attr.attributSequence[i] as Brackets; if ((br.atribut1.word == word) || (br.atribut2.word == word)) { return(i); } for (int j = 0; j < br.unionsForAttr2.Count; j++) { if ((br.unionsForAttr2[j] as ElementaryAttribut).word == word) { return(i); } } } } return(-1); }