176
What's a readability
(lemmy.world)
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Da fuck?!
Where doe it declare it's a public property? Is it some kind of default now? Everything you write becomes one?
Right there where it says "public". What are you talking about?
Oh, right. I read it all wrong for a moment.
What do you mean? Why does what need to be a public property?
It's an Expression-Bodied Member (available since C#6). The expression (=>) is just syntactic sugar that the compiler recognizes as a single line property with only a getter (under the hood both versions compile the same).