Exemplo n.º 1
0
        public void FindAndChange(Status status)
        {
            var i = from s in statuses where status.id == s.id select s;

            if (i.Count() != 0)
            {
                foreach (var item in i.ToArray())
                {
                    statuses[statuses.IndexOf(item)] = status;
                }
            }
            i = from s in mentions where status.id == s.id select s;
            if (i.Count() != 0)
            {
                foreach (var item in i.ToArray())
                {
                    mentions[mentions.IndexOf(item)] = status;
                }
            }
        }