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

Page 244 init-only properties #71

Closed
DrAvriLev opened this issue May 27, 2023 · 1 comment
Closed

Page 244 init-only properties #71

DrAvriLev opened this issue May 27, 2023 · 1 comment

Comments

@DrAvriLev
Copy link

Here you ask to create a new cs file under PacktLibraryNetStandart2 project. However, the init keyword does not work in .Net 2.

Chapter: 05
Page Number: 244
Section Title: working with records
Step Number: 1
Problem to fix: target .NET 2
Suggested solution: I moved the file under the PacktLibraryModern that targets .NET 7. There it's working correctly.
Other useful information e.g. OS, coding tools, and so on:

@markjprice
Copy link
Owner

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