public void CacheRemAndAdd() { var list = new CacheList <UserFriend>(); list.AddRange(new[] { new UserFriend() { UserId = 1001 }, new UserFriend() { UserId = 1002 }, }); var temp = list.ToArray(); list.Clear(); list.AddRange(temp); }
public void CacheRemAndAdd() { var list = new CacheList <UserFriend>(); list.AddRange(new[] { new UserFriend() { UserId = 1001 }, new UserFriend() { UserId = 1002 }, }); var temp = list.ToArray(); list.Clear(); list.AddRange(temp); }