Skip to content

Update DifferenceBetweenFieldsAndProperty sample to .NET 10 - #2115

Merged
vladimir-pecanac-main merged 1 commit into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/109000-csharp-difference-between-properties-and-fields
Aug 20, 2026
Merged

Update DifferenceBetweenFieldsAndProperty sample to .NET 10#2115
vladimir-pecanac-main merged 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.
@vladimir-pecanac-main
vladimir-pecanac-main merged commit 17a188e into CodeMazeBlog:main Aug 20, 2026
3 checks passed
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