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