Replies: 1 comment 1 reply
-
@Bunnui by default the compiler always just defers to the specific type to control all these things (equality, hasing, printing, etc.) If you want to customize this, you can override the appropriate members in your record to do so. |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Example:
Result
original
Person { FirstName = Nancy, LastName = Davolio, PhoneNumbers = System.String[] }
hope
Person { FirstName = Nancy, LastName = Davolio, PhoneNumbers = [ 123, 456 ] }
Suggestion
I want the compiler to print out the contents of the array in the ToString in the record class, so that you can see the contents of the array more intuitively
Beta Was this translation helpful? Give feedback.
All reactions