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

[C#] Add ToString output #852

Closed
MFrpurdy opened this issue May 31, 2021 · 2 comments
Closed

[C#] Add ToString output #852

MFrpurdy opened this issue May 31, 2021 · 2 comments

Comments

@MFrpurdy
Copy link
Contributor

It would be helpful, when debugging especially, to have ToString output like the generated Java encoders/decoders.

I have a PR ready for this if you think it's a good idea.

Example output:

[Car](sbeTemplateId=1|sbeSchemaId=1|sbeSchemaVersion=0|sbeBlockLength=45):SerialNumber=1234|ModelYear=2013|Available=T|Code=A|SomeNumbers=[0,1,2,3]|VehicleCode=abcdef|Extras={SportsPack, CruiseControl}|DiscountedModel=C|Engine=(Capacity=2000|NumCylinders=4|ManufacturerCode=123|Efficiency=35|BoosterEnabled=T|Booster=(BoostType=NITROUS|HorsePower=200))|FuelFigures=[(Speed=30|Mpg=35.9|UsageDescription='Urban Cycle'),(Speed=55|Mpg=49|UsageDescription='Combined Cycle'),(Speed=75|Mpg=40|UsageDescription='Highway Cycle')]|PerformanceFigures=[(OctaneRating=95|Acceleration=[(Mph=30|Seconds=4),(Mph=60|Seconds=7.5),(Mph=100|Seconds=12.2)]),(OctaneRating=99|Acceleration=[(Mph=30|Seconds=3.8),(Mph=60|Seconds=7.1),(Mph=100|Seconds=11.8)])]|Manufacturer='Honda'|Model='Civic VTi'|ActivationCode='abcdef'
@billsegall
Copy link
Contributor

This would definitely be a great addition.

@mjpt777
Copy link
Contributor

mjpt777 commented Jun 1, 2021

That would be great.

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

No branches or pull requests

3 participants