minus-squarehdsrob@lemmy.worldtoProgrammer Humor@programming.dev•What's a readabilitylinkfedilinkEnglisharrow-up4·7 days agoIt’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). linkfedilink
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).