Method SetCurrent
SetCurrent(object, int)
set CurrentItem and CurrentPosition, no questions asked!
protected void SetCurrent(object newItem, int newPosition)
Parameters
Remarks
CollectionViews (and sub-classes) should use this method to update the Current__ values.
SetCurrent(object, int, int)
set CurrentItem and CurrentPosition, no questions asked!
protected void SetCurrent(object newItem, int newPosition, int count)
Parameters
Remarks
This method can be called from a constructor - it does not call any virtuals. The 'count' parameter is substitute for the real Count, used only when newItem is null. In that case, this method sets IsCurrentAfterLast to true if and only if newPosition >= count. This distinguishes between a null belonging to the view and the dummy null when CurrentPosition is past the end.