In windows phone development I have some data from a MS SQL database. I am sending a list from a database but I want to convert it to a string array in the client. But I don’t know how to do.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In C# if you have the list then you can try this:
C# List has
ToArray()inbuilt method.Here is a code with an assumption that you may want to connect to SQL Server from C#, get the select statement rows into a list and then convert that list to a string array: (Fill up the
?marks using proper values as per your system/database. Here is MSDN articles: one and two.