namespace ConsoleApp1
{
public class Program
{
static void Main(string[] args)
{
var ints = new long [10];
for (int i = 0; i < 10; i++)
{
ints[i] = i;
}
var dt = new DataTable();
using (var reader = ObjectReader.Create(ints))
{
dt.Load(reader);
}
}
}
}`
Error information:
Message: "Specified argument was out of the range of valid values. Parameter name: name"
If I wrap the array of ints in my own object, it works fine. I have also tried this with string[] and long[]
`using System.Data; using FastMember;
namespace ConsoleApp1 { public class Program { static void Main(string[] args) { var ints = new long [10]; for (int i = 0; i < 10; i++) { ints[i] = i; }
}`
Error information:
If I wrap the array of ints in my own object, it works fine. I have also tried this with string[] and long[]