KoalaUnknown@lemmy.world to Programmer Humor@programming.devEnglish · 7 days agoWhat's a readabilitylemmy.worldexternal-linkmessage-square70fedilinkarrow-up1191arrow-down118
arrow-up1173arrow-down1external-linkWhat's a readabilitylemmy.worldKoalaUnknown@lemmy.world to Programmer Humor@programming.devEnglish · 7 days agomessage-square70fedilink
minus-squarehdsrob@lemmy.worldlinkfedilinkEnglisharrow-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).
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).