, 2 , .
"1,2,3,4,5,.... 499500"
"1,2,3,4,5,.... 499500"
500 2 2000 , ( ).
( 1 50000) 100 000 , , . , ~ 10 000 000 000 ( , 2 /char) 20 .
StringBuilder += (RowString).
Ex
Dim RowString As StringBuilder = new StringBuilder( 100000 )
For Each Row In RowIndexes
RowString.Append( CInt(Row.ToString) + 1).Append( "," )
Next
'...'
Return RowString.ToString
, .
Private Function GetCommaSeperatedString(ByRef RowIndexes As ArrayList) As String
Dim indexArray as String[] = RowIndexes
.Select(Function(r)=> (CInt(r.ToString) + 1)ToString)
.ToArray
return String.Join( ',', indexArray)
End Function
* note: these are the first lines of VB that I have ever written, so I may have made a basic mistake (especially in linq / lambda materials), but the point is.
source
share