3 ms·
The problem with this code is that it is quite obfuscated. The "i" variable is essentially always 0, because it is being incremented and decremented over and o
by aidenn0 15y ago
The problem with this code is that it is quite obfuscated. The "i" variable is essentially always 0, because it is being incremented and decremented over and over. Here is code that does the same thing, but without the useless variable:
while( this.MyControl.TabPages.Count >0)
{
this.MyControl.TabPages.Remove ( this.MyControl.TabPages[0] );
}