Created
October 5, 2019 18:01
-
-
Save davidelettieri/891f36098356d5273882da015c9f3e6a to your computer and use it in GitHub Desktop.
Boxing in ToString()
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Foo | |
{ | |
public int Value { get; set; } | |
public override string ToString() | |
{ | |
return $"{{{nameof(Value)}={Value}}}"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment