List<ChatInfo> ChatInfoArray = null;
FindClass Fc = new FindClass();
Fc.UserId = ID;
ChatInfoArray = ListClass.Engin_ChatList.FindAll(Fc.PredicateChat);
foreach (ChatInfo Cif in ChatInfoArray)
{
ListClass.Engin_ChatList.Remove(Cif);
}
return ChatInfoArray;
我改写的:
ArrayList ChatInfoArray = null ;
FindClass Fc = new FindClass();
Fc.UserId = ID;
ChatInfoArray = ListClass.Engin_ChatList;
foreach(ChatInfo Cif in ChatInfoArray)
{
if(!Fc.PredicateChat(Cif))
{
ListClass.Engin_ChatList.Remove(Cif);
}
}
return ChatInfoArray ;
不负相思意
白衣染霜花