4 ms·
I am not a programmer, so I did not know about the clear() method. I thought it was a rather elegant solution! I guess it's all about perspective.
by hammock 15y ago
I am not a programmer, so I did not know about the clear() method. I thought it was a rather elegant solution! I guess it's all about perspective.
- deleted 15y ago[deleted]
- aidenn0 15y agoThe 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] ); }