coding4art.com - Maurizio's blog 3.0 – Software architect, developer, geek boy, technology addicted and much more, with a huge passion for 70's r

Example domain paragraphs

In C# 6.0 a read-only property like this:

public string SomeProperty => "sometext"; This feature is called “expression body”, but it has some limitations, e.g. the property is turned into field, it only works with read-only properties and not with constructors, deconstructor, getter, setter and so on.

C# 7.0 add all these constructs and then expands the usage of this feature.