Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • I'm trying to use string += like this : query ="INSERT INTO MASTERPI (tag,instrumenttag)"); query += "VALUES ('" + createTagRow["tag"].ToString() + "','" + createTagRow["instrumenttag"].ToString() + "'"); Is it efficient ?? Commented Feb 22, 2010 at 9:14
  • To the question if it is efficient, it is very hard to read. So it is inefficient regarding to the maintainability. My approach is also not quite perfect, cause both lists have to be in the same order. This could be achieved by using some kind of Tuple<T1, T2>, but this can by solved by the questioner itself. It should only show another approach to solve this problem. Commented Feb 22, 2010 at 10:17