Home > Back-end >  How to query a table results in N dimensional array, c #.
How to query a table results in N dimensional array, c #.

Time:09-23

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;

The namespace Classdemo
{
Public class link
{


Public string [] [] getdata (string tablename)
{


Asd=new string string [] [] [2] [].
Asd [0]=new string [] {" 123 ", "123", "444"};
Asd [1]=new string [] {" 123 ", the tablename, "asd"};
Return (asd);
}

}
}


How to add the code in the above, put the results of a query in the array, for help,