Re: String foreach problem
- From: "Peter Duniho" <NpOeStPeAdM@xxxxxxxxxxxxxxxx>
- Date: Wed, 11 Jul 2007 14:32:27 -0700
On Wed, 11 Jul 2007 10:32:41 -0700, Mark Wilden <mwilden@xxxxxxxxxxxxxxxx> wrote:
The poster is using a DataGrid. It's not good practice to put a large number
of items in a DataGrid. What would the user do with thousands of rows?.
Well, as has been pointed out, it seems safer to assume that the OP misstated, and they are in fact using a DataSet, not DataGrid. But whether he is or not, my point is that your statement didn't restrict itself to a DataGrid, and as a more general statement I found it lacking.
You didn't write "I can't imagine needing a string created from a DataGrid that is so long that using a StringBuilder instead of creating new strings would be significant".
You did write "I can't imagine needing a string so long that using a StringBuilder instead of creating new strings would be significant".
There's a world of difference between the two statements, and my point is that there certainly are scenarios in which a StringBuilder makes a LOT of sense for concatenating strings.
Pete
.
- References:
- String foreach problem
- From: ApeX
- Re: String foreach problem
- From: Göran Andersson
- Re: String foreach problem
- From: Mark Wilden
- Re: String foreach problem
- From: Peter Duniho
- Re: String foreach problem
- From: Mark Wilden
- String foreach problem
- Prev by Date: Re: C# DLL-plugin references
- Next by Date: Re: Question about string efficiency
- Previous by thread: Re: String foreach problem
- Next by thread: Re: String foreach problem
- Index(es):
Relevant Pages
|