public void SetCount(int value) { if (Count < value) InsertRange(Count, value - Count); else if (Count > value) RemoveRange(value, Count - value); }