Expression bodied members were introduced in C# 6.0. You can read more about those here
C# 7.0 introduced more stuff like accessors, finalizer’s and constructors as expression bodied members
Expression Bodied Syntax for constructors
public CSharp7Features(string someData) => Console.WriteLine("Constructor called with {0} in c# 7 feature", someData);
Expression Bodied Syntax for Finalizers
~CSharp7Features() => Console.WriteLine("Finalizer called using C# 7 feature");
Expression Bodied Syntax for Accessors
float someDataMember; public float SomeDataMember { get => someDataMember; set => someDataMember = value; }
All code samples are available at my GitHub profile
I am a corporate trainer and solution architect and have a great team of software professionals. Please contact in case you need our services by sending email to contact@techprocompsoft.com. Here is our company website .