Compilation Error : CS0702: Constraint cannot be special class 'object'
RyRy79261 opened this issue · comments
Ryan Noble commented
Line 70: /// Add a list of typed objects, maps object properties to CsvFields
Line 71: ///
Line 72: public void AddRows(IEnumerable list) where T : object
Line 73: {
Line 74: if (list.Any())
Only included in the project, doesnt work from the get go.
Deleted user commented
Sorry, not following. Compiles fine on my side (C# 4.0, NET 4.0)
Oscar Murillo commented
I have the same error in .Net 4.5.
In my case I don't need that method so I just commented out the method and everything worked.
Deleted user commented
Fixed in the latest commit