• hdsrob@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    ·
    2 days 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).