donnytian / Npoi.Mapper

Use this tool to import or export data with Excel file. The tool is a convention based mapper between strong typed object and Excel data via NPOI.
MIT License
589 stars 114 forks source link

Separate BindingFlags seem to be needed. #54

Closed gdennie closed 5 years ago

gdennie commented 5 years ago

When producing the object from a sheet only settable properties are used and, in particular, Readonly properties should be ignored. Presently, the mere presence of such properties causing a crash. Conversely, when writing a sheet Writeonly properties should be ignored. Consequently, two distinct BindingFlag seems necessary.