When writing a class, I can use an Expression bodied function in a Get-property in two ways:
class Person
{
public string FirstName {get; set;}
public string LastName {get; set;}
public string FullName1 => $"{FirstName} {LastName}";
public string FullName2 { get => $"{FirstName} {LastName}"; }
}
MSDN about expression bodied function members
You can also use expression-bodied members in read-only properties as well:
public string FullName => $"{FirstName} {LastName}";
So if this syntax represents the implementation of a Get-property, what does the second one mean? What is the difference? Is one preferred above the other?