How can I use DataTable?

MaxB123MaxB123 Member
edited March 30 in Visual Studio

I am very new and currently trying to make my console app work on mobile. However, when I add a reference and try to use a DataTable, it doesn't work.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Data;

namespace App1
{

[Activity(Label = "@string/app_name", Theme = "@style/AppTheme", MainLauncher = true)]
    public class MainActivity : AppCompatActivity
    {
        static DataTable dt = new DataTable();
}

}
The type or namespace "DataTable" could not be found.

Tagged:
Sign In or Register to comment.