This is unnecessary:
You create a new object and immediately throw it away. Simply useCode:Item tmpItem = new Item(); tmpItem = iMasterList[tmpR];
Code:Item tmpItem = iMasterList[tmpR];
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 15 of 20
Threaded View
|
Click Here to Expand Forum to Full Width |