Click here to Skip to main content
15,880,392 members
Please Sign up or sign in to vote.
1.33/5 (6 votes)
See more:
dasdasdfasdasdaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Posted
Updated 31-May-11 2:04am
v3
Comments
Toli Cuturicu 16-Mar-11 15:56pm    
Some clarification (or maybe some code) needed.

1 solution

object[] objs = new object[y];
string[] strings = new string[y];
int pos = 0;
while (reader.Read())
{
    strings[pos++] = string.Join(", ", objs);
}

If this is not what you're after, feel free to further refine the question.
 
Share this answer
 
v2
Comments
Toli Cuturicu 16-Mar-11 17:34pm    
Example: John London 1234 UK
What is this? Is it objs or objs[pos]? Who is y? 4?
What part of it do you want stored?
Give a complete example, please.
Toli Cuturicu 16-Mar-11 17:45pm    
Of course. Your idea is very good. Congratulations, you solved it!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900