internal void GenerateCandidatesFromMatrix(WfMatrix matrix) { WfMatrixRowCollection rows = FilterRowsByActivity(matrix); WfMatrixRowUsersCollection rowsUsers = rows.GenerateRowsUsers(); foreach (WfMatrixRowUsers ru in rowsUsers) { this.Candidates.Add(ru.Users); } Candidates.Distinct((a1, a2) => string.Compare(a1.User.ID, a2.User.ID, true) == 0 && a1.AssigneeType == a2.AssigneeType); }