KoalaUnknown@lemmy.world to Programmer Humor@programming.devEnglish · 1 month agoWhat's a readabilitylemmy.worldimagemessage-square70linkfedilinkarrow-up1193
arrow-up1193imageWhat's a readabilitylemmy.worldKoalaUnknown@lemmy.world to Programmer Humor@programming.devEnglish · 1 month agomessage-square70linkfedilink
minus-squarehdsrob@lemmy.worldlinkfedilinkEnglisharrow-up4·1 month 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).