Wednesday, August 12, 2015

What is an expression-bodied member in C# 6.0?

This...

public System.Web.UI.Page WebPage => this;

 
 

...is basically the same as this...

public System.Web.UI.Page WebPage
{
   get
   {
      return this;
   }
}

 
 

...per this.

No comments:

Post a Comment