In C#7.0 there has been given a feature to improve the readability of literal values. You can place an underscore ( _ ) between values without effecting the value of the literal. That makes it very easy to read.
As you can see in the above code that _ is put between the value of the integer literal. In below snap shot the debug values shows the unaffected values.
Literals are also improved to show more readable binary values. And also you can put this _ separator similar to integer value shown above.
I will keep it short and to the point as usual. So that you don’t ignore it due to its length. I enjoy putting it bit by bit on daily basis and I believe it gives you a regular short tip and technique on new features or the technology.
Happy Coding 🙂
Show Comments (0)