Replies: 1 comment
-
|
Convert to issue to increase visibility |
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.
-
Right now I use Claude to generate the boiler plate involved in inherited from
EncodeableObject. It would be wonderful if there was a source generator that would handle, at least, overriding Decode, Encode, and IsEqual. I wouldn't mind if it was done by convention or through attributes (like the CommunityToolkit.Mvvm package does for view models). I could see it a couple of ways.Convention
And now the Attribute style of handling it (which might provide some more flexibility
Attributes
This would basically generate the same thing (adding the ExpandedNodeId properties that the other one wouldn't) but also use information in the attribute to know in what order to read from the decoder and write to the encoder. I can continue to use AI tools to do it but a source generator would be the superior method to handling the boiler plate in this case. I'd love to hear others' thoughts on this.
Beta Was this translation helpful? Give feedback.
All reactions