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

Features: Add C# binary schema constant #349

Merged
merged 1 commit into from
Sep 25, 2024

Conversation

Anatoly03
Copy link
Contributor

This Pull Request refactors the code in TypeScript's binary schema creation and adds the feature to C#. The refactoring was made because the old code reserved the string extension method byte[].ConvertToTypeScriptUInt8ArrayInitializer(schemaName), which was abstracted to byte[].ConvertToString(leftBrace, rightBrace). The new method allows printing out the schema language-independent.

This Pull Request was tested with TypeScript and C#.

Copy link
Contributor

@andrewmd5 andrewmd5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this. Needs one change.

Also please squash your commits.

Core/Generators/CSharp/CSharpGenerator.cs Outdated Show resolved Hide resolved
Core/Generators/CSharp/CSharpGenerator.cs Outdated Show resolved Hide resolved
@Anatoly03 Anatoly03 force-pushed the features/cs-binary-schema branch 2 times, most recently from 62fce4f to 11ef15f Compare September 25, 2024 13:58
@Anatoly03
Copy link
Contributor Author

Thank you for the quick review. Here are some additions:

  • Squashed commits
  • Moved C# Binary schema to bop constants

@Anatoly03 Anatoly03 force-pushed the features/cs-binary-schema branch from 11ef15f to 02ce9d5 Compare September 25, 2024 14:17
@andrewmd5
Copy link
Contributor

Test are passing LGTM - thank you!

Note for future self: implement binary schemas into the C# runtime this week.

@andrewmd5 andrewmd5 merged commit 3142efb into betwixt-labs:master Sep 25, 2024
8 checks passed
@Anatoly03
Copy link
Contributor Author

Thank you ❤️

@Anatoly03 Anatoly03 deleted the features/cs-binary-schema branch September 25, 2024 14:32
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