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

Problem with record at https://docs.closedxml.io/en/latest/features/tables.html#table-name #352

Open
abergquist opened this issue Apr 26, 2024 · 0 comments

Comments

@abergquist
Copy link

With respect to the following line of code at https://docs.closedxml.io/en/latest/features/tables.html#table-name:

record Pastry(string Name, int Sales);

I'm getting the following error:

CS0246: The type or namespace name 'record' could not be found (are you missing a using directive or an assembly reference?)

Replacing the above line of code with the following line of code:

public record struct Pastry(string Name, int Sales);

resolved the issue for me.

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

1 participant