public class MyBindingList : BindingList<int>
{
public MyBindingList()
{
}
private BindingList<int> temp;
public void Backup()
{
int[] arr = new int[this.Count];
this.CopyTo(arr,0);
temp = new BindingList<int>(arr);
}
public void Restore()
{
this.Items.Clear();
//for(int i=0;i<temp.Count;i++) this.Add(temp[i]);
}
}
//for(int i=0;i<temp.Count;i++) this.Add(temp[i]);
復元するのはとても遅い方法なので、restore()をより効率的に行うために何を使用できますか?