Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't use object as property type #309

Closed
asherber opened this issue Jul 16, 2024 · 1 comment
Closed

Can't use object as property type #309

asherber opened this issue Jul 16, 2024 · 1 comment

Comments

@asherber
Copy link

Given this spreadsheet:

image

And this class:

public class Record
{
    public object Name { get; set; }
    public object Age { get; set; }
}

I get these results in LinqPad from new ExcelMapper(file).Fetch<Record>().Dump();:

image

Is it a known limitation that properties need to be defined with more definite types than object? It would be nice if this worked.

@mganss mganss closed this as completed in cdc4fcd Jul 16, 2024
@mganss
Copy link
Owner

mganss commented Jul 16, 2024

Fixed in 5.2.592

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants