Replies: 1 comment
-
Your best bet is to use a custom type converter to serialize it exactly the way you want. A side note on the scale being really long. That’s an issue with single/float data types. Those types are not absolute values. You may be better off with decimal if youre looking precision. I could slap together an example in c# but I’m not a vb dev so that would probably take a bit. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I need some help, and I need a VB.NET solution. Definitely a newbie as it's my first day with Yamldotnet.
I have a SortedDictionary populated with objects of class LASERcmd. It is defined by
Private LASERcmds As New SortedDictionary(Of Integer, LASERcmd) From { . . . . .
The definition of LASERcmd is below. When I serialize it I get the correct output (only two records shown for brevity) but it lacks a little in it's human readableness.
I have a feeling that all 3 questions will be a minor variation on the same answer, so some help with at least the first question would be much appreciated. I've spent a few hours attempting a custom converter, but most examples ar not VB.NET
TIA
YAML output
Class definition
Beta Was this translation helpful? Give feedback.
All reactions