Difference between => constant to { get; } = constant [duplicate]
This question already has an answer here: Difference in C# between different getter styles 3 answers In the context of best practice and performance (if any) what is better for exposing a value that is either set or calculated once as a property in C# 6+ style properties? I'm comparing expression bodied properties public string Name => "bob"; and auto-property initialisation public string Name { get; } = "bob"; Does it desugar to the same thing? I can't find anywhere in the docs that says which to use for my case. I apologise if this is covered already in SO, the search got me no where. Beware