Fat Lenny
Fat Lenny
CC#
Created by Fat Lenny on 9/21/2024 in #help
difference between a normal variable and one declared with that property shorthand garbage
i'd be grateful for anyone willing to explain that to me. Like, I encountered it while trying to set up a DataGrid in WinUi earlier and changing a class property from normal public field to one with the get set shorthand fixed it for some reason and i'm just wondering why they behave differently. aren't they accessed the exact same way from the outside?
40 replies