Skip to content

Update DifferenceBetweenFieldsAndProperty sample to .NET 10 - #2115

Open
vladimir-pecanac-main wants to merge 1 commit into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/109000-csharp-difference-between-properties-and-fields
Open

Update DifferenceBetweenFieldsAndProperty sample to .NET 10#2115
vladimir-pecanac-main wants to merge 1 commit into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/109000-csharp-difference-between-properties-and-fields

Conversation

@vladimir-pecanac-main

Copy link
Copy Markdown
Collaborator

Retargets both projects in csharp-intermediate-topics/DifferenceBetweenFieldsAndProperty from net8.0 to net10.0 and adds RectangleWithFieldKeyword, which expresses the same width validation with the C# 14 field keyword next to the existing hand-written backing-field version, so both forms are in the sample.

Build and tests on net10.0: build succeeded with 0 warnings, 4/4 tests passing.

Retarget both projects from net8.0 to net10.0 and add a RectangleWithFieldKeyword
type that expresses the same width validation with the C# 14 field keyword, next
to the existing hand-written backing-field version so both forms are in the sample.
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

Successfully merging this pull request may close these issues.

1 participant