Skip to content
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

change Message.ToString() to not change object state anymore #886

Merged
merged 2 commits into from
Sep 17, 2024

Conversation

gbirchmeier
Copy link
Member

@gbirchmeier gbirchmeier commented Sep 16, 2024

resolves #863

Change Message.ToString() to not alter object state anymore (which breaks the inheritance guidelines of ToString().

Moved the old functionality of computing/adding/updating BodyLength & CheckSum to the new function Message.ConstructString().

(I really thought this was going to be more trouble than it actually was!)

issue connamara#883

New function ConstructString now does the
BodyLength/CheckSum update that ToString used to do
@gbirchmeier gbirchmeier merged commit 5400f87 into connamara:master Sep 17, 2024
2 checks passed
@gbirchmeier gbirchmeier deleted the tostring branch September 26, 2024 16:21
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.

Problem when debugging - Message.ToString() alters state, which does weird things with VS debugger
1 participant