public int GetAccountIndex(long accountId) { int index = -1; AccountInformations.ForEach(i => { if (i.AccountID == accountId) { index = AccountInformations.IndexOf(i); } }); return(index); }
public CTwitterAccountInformation FindAccountById(long accountId) { CTwitterAccountInformation item = null; AccountInformations.ForEach(i => { if (i.AccountID == accountId) { item = i; } }); return(item); }