This PR updates the implementation of the DecodeXxx extension method, when Xxx is an enum with fields.
The implementation is now using local functions instead of FromSliceDecoder helper methods on the enumerator classes.
I initially wanted to do the same for EncodeXxx, but finally kept the existing logic. I just updated to code to make the helper internal Encode methods "never editor browsable".
This PR updates the implementation of the DecodeXxx extension method, when Xxx is an enum with fields.
The implementation is now using local functions instead of FromSliceDecoder helper methods on the enumerator classes.
I initially wanted to do the same for EncodeXxx, but finally kept the existing logic. I just updated to code to make the helper internal Encode methods "never editor browsable".