Why not just:
while (this.MyControl.TabPages.Count > 0)
{
this.MyControl.TabPages.Remove ( 0 );
} while (this.MyControl.TabPages.Count > 0)
{
this.MyControl.TabPages.Remove ( 0 );
}Less than 50?
Then don't worry about the optimization until you have to port it to a PDP10.
No, way more than that.
No, over nine thousands.
while (this.MyControl.TabPages.Count > 0)
{
this.MyControl.TabPages.Remove ( this.MyControl.TabPages.Count-1 );
}