public int GetUserIndexById(Int64 userId) { for (int i = 0; i < alUserIds.Count; i++) { if (alUserIds[i] == userId) { return i; } } return -1; }