Skip to content

Add C# language with tests - #73

Merged
rijesha merged 6 commits into
mainfrom
copilot/add-csharp-language-tests
Dec 5, 2025
Merged

Add C# language with tests#73
rijesha merged 6 commits into
mainfrom
copilot/add-csharp-language-tests

Conversation

Copilot AI commented Dec 5, 2025

Copy link
Copy Markdown
Contributor
  • Create C# code generator (csharp_gen.py)
  • Create C# frame parser generator (frame_parser_csharp_gen.py)
  • Add multi-file generation support for C# frame parsers
  • Update generate_boilerplate.py to include C# boilerplate generation
  • Generate C# frame parser boilerplate files (BasicDefault, TinyDefault, etc.)
  • Add FrameBase.cs with base utilities (FrameParseResult, FrameFormatBase, StructHelper)
  • Add FrameParsers.cs with FrameFormatType enum
  • Fix LengthBytes reference for frame parsers without length field (FrameFormatConfig, etc.)
  • Verify code generation tests pass
Original prompt

This section details on the original issue you should resolve

<issue_title>Add C# language with tests</issue_title>
<issue_description>To implement this is C# the MarshalAs function can be used. </issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: rijesha <7819200+rijesha@users.noreply.github.com>
@rijesha
rijesha marked this pull request as ready for review December 5, 2025 00:19
Copilot AI and others added 2 commits December 5, 2025 00:24
…t file

Co-authored-by: rijesha <7819200+rijesha@users.noreply.github.com>
…ted obj directory

Co-authored-by: rijesha <7819200+rijesha@users.noreply.github.com>
Copilot AI changed the title [WIP] Add C# language support with tests Add C# language with tests Dec 5, 2025
Copilot AI requested a review from rijesha December 5, 2025 00:27
@rijesha

rijesha commented Dec 5, 2025

Copy link
Copy Markdown
Contributor

@copilot the c# tests are not running for the frame tests.
Generate the boilerplate code.

Co-authored-by: rijesha <7819200+rijesha@users.noreply.github.com>

Copilot AI commented Dec 5, 2025

Copy link
Copy Markdown
Contributor Author

@copilot the c# tests are not running for the frame tests.
Generate the boilerplate code.

Generated the C# frame parser boilerplate code in commit f3a0120. The boilerplate now includes all frame format parsers (BasicDefault, BasicMinimal, TinyDefault, TinyMinimal, etc.) in src/struct_frame/boilerplate/csharp/. Each frame parser class inherits from FrameFormatBase and provides Encode(), ParseByte(), ValidatePacket(), and Reset() methods.

Co-authored-by: rijesha <7819200+rijesha@users.noreply.github.com>
@rijesha
rijesha merged commit cb5292a into main Dec 5, 2025
2 checks passed
@rijesha
rijesha deleted the copilot/add-csharp-language-tests branch December 6, 2025 03:20
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.

Add C# language with tests

2 participants