Skip to content

Convert records to classes#470

Merged
eiriktsarpalis merged 3 commits intomodelcontextprotocol:mainfrom
eiriktsarpalis:convert-records
May 30, 2025
Merged

Convert records to classes#470
eiriktsarpalis merged 3 commits intomodelcontextprotocol:mainfrom
eiriktsarpalis:convert-records

Conversation

@eiriktsarpalis
Copy link
Copy Markdown
Member

I noticed that we're somewhat inconsistent in our use of classes vs. records. In lieu of a good reason to use records (promoting with expressions in immutable types, need for structural equality comparison) this PR is changing all records to being regular classes for consistency and reduced IL size.

Comment thread src/ModelContextProtocol/ProgressNotificationValue.cs
@eiriktsarpalis eiriktsarpalis merged commit 47e6a64 into modelcontextprotocol:main May 30, 2025
7 checks passed
@eiriktsarpalis eiriktsarpalis deleted the convert-records branch May 30, 2025 14:34
@jeffhandley jeffhandley added the breaking-change This issue or PR introduces a breaking change label Feb 20, 2026
@jeffhandley
Copy link
Copy Markdown
Contributor

This PR was identified as a breaking change during a retrospective audit of the v0.2.0-preview.3 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking-change This issue or PR introduces a breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants