Expression Body Definitions - Important Concept

alwayssuresh5

New member
Joined
Dec 5, 2015
Messages
1
Programming Experience
1-3
Hi,
Can you please explain this..
for your reference..
doubt.PNG

and url:
https://msdn.microsoft.com/en-us/library/x9fsa0sw.aspx#Anchor_0
 

jmcilhinney

C# Forum Moderator
Staff member
Joined
Apr 23, 2011
Messages
3,904
Location
Sydney, Australia
Programming Experience
10+
It's a shorthand for this:
public string Name
{
    get { return First + " " + Last; }
}
 
Top Bottom