Course Solutions Uncategorized (Solved) : 2 Wrong Following Code C List Collection New List Work Put Lot Items Liststring Valuetowri Q26259970 . . . .

(Solved) : 2 Wrong Following Code C List Collection New List Work Put Lot Items Liststring Valuetowri Q26259970 . . . .

 

2.What is wrong with the following code?

C#

List<string> collection = new List<string>();// do some work to put a lot of items into the liststring valueToWrite;for(int loopCounter = 0; loopCounter <= collection.Count; loopCounter++){ valueToWrite += collection[loop]; // do some more work}

VB

Dim collection As New List(Of String)’ do some work to put a lot of items into the listDim valueToWrite as StringFor loopCounter As Integer = 0 To collection.Count valueToWrite += collection(loop) ‘ do some more workNext

Expert Answer


An answer will be send to you shortly. . .

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post