▲ 167 ▼ What's a readability (lemmy.world) submitted 1 year ago by KoalaUnknown@lemmy.world to c/programmer_humor@programming.dev 56 comments fedilink hide all child comments
[–] marcos@lemmy.world -5 points 1 year ago (4 children) Da fuck?! Where doe it declare it's a public property? Is it some kind of default now? Everything you write becomes one? permalink fedilink source hideshow 4 child comments replies: [–] Mozingo@lemmy.world 18 points 1 year ago (1 child) Right there where it says "public". What are you talking about? permalink fedilink source parent hideshow 1 child comment replies: [–] marcos@lemmy.world 4 points 1 year ago Oh, right. I read it all wrong for a moment. permalink fedilink source parent [–] hdsrob@lemmy.world 4 points 1 year ago 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). permalink fedilink source parent [–] victorz@lemmy.world 4 points 1 year ago What do you mean? Why does what need to be a public property? permalink fedilink source parent
[–] Mozingo@lemmy.world 18 points 1 year ago (1 child) Right there where it says "public". What are you talking about? permalink fedilink source parent hideshow 1 child comment replies: [–] marcos@lemmy.world 4 points 1 year ago Oh, right. I read it all wrong for a moment. permalink fedilink source parent
[–] marcos@lemmy.world 4 points 1 year ago Oh, right. I read it all wrong for a moment. permalink fedilink source parent
[–] hdsrob@lemmy.world 4 points 1 year ago 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). permalink fedilink source parent
[–] victorz@lemmy.world 4 points 1 year ago What do you mean? Why does what need to be a public property? permalink fedilink source parent