jitbit / CsvExport

Very simple CSV-export tool for C#

Home Page:https://www.jitbit.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compilation Error : CS0702: Constraint cannot be special class 'object'

RyRy79261 opened this issue · comments

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.

Sorry, not following. Compiles fine on my side (C# 4.0, NET 4.0)

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.

Fixed in the latest commit