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.
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.
The only constructor for DataRow is internal. A DataRow is created by call to DataTable.NewRow().