-
Notifications
You must be signed in to change notification settings - Fork 301
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
Move into Shared SqlNotificationEventArgs.cs #1314
Move into Shared SqlNotificationEventArgs.cs #1314
Conversation
Can this use init setters to avoid the fields entirely? |
I just realized that C#9 introduced init-only setter. It's a pretty neat syntax to remove the fields and constructor. I'm down with that if it's ok with everyone. |
We only need to ensure the scope of APIs does not change. i.e. Private setters should stay private and same for public. |
I just tried to use the new
and I got compiler errors for netcore and netfx projects. Then I found out that C#9 is only available in .NET5 and above and since the project is built using .net framework 4.6.1 and .net core 3.1, we won't be able to use |
Thats a shame, thanks for checking. |
Both old files can be deleted too? |
Thanks for catching that, I missed that for some reason. I usually merge netfx into netcore first, delete netfx version, update the ref in the netfx csproj verify it builds and then move it over to shared src and update the references before I do the doc path updates, and IDE fixes and when I commit it, it will automatically marks the one for netcore as rename, but somehow it got missed. |
Relates to #1261. Merge the netcore version into shared src and update the reference in the csproj.