0

i want to create instance for datarow using activator like this

 dataItem = Activator.CreateInstance<T>();

while i using this code i got exception

No parameterless constructor defined for this object.

YogeshWaran
  • 2,291
  • 4
  • 24
  • 32

1 Answers1

0

The only constructor for DataRow is internal. A DataRow is created by call to DataTable.NewRow().

Nikola Markovinović
  • 18,963
  • 5
  • 46
  • 51