Skip to content

Convert records to classes #470

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

Merged

Conversation

eiriktsarpalis
Copy link
Contributor

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.

@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
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.

2 participants