Home > Net >  Why other people can write like this?
Why other people can write like this?

Time:05-16

Online by a c # source code, find the code in the extensive use of written as
The get=& gt; XXX;
The set=& gt; XXX=value;
Val a=test (out int b);
I write in vs2015 such complains, vs the version of the problem is this excuse me? If not, how to set up to write?

In addition, using quick search and replace, how to get it=& gt; XXX; Replace the get {return XXX; Bosses give directions},

CodePudding user response:

Vs2015 already supports Linq, adding System. Linq reference, can replace with regular

CodePudding user response:

The get \ s *=& gt; \ s * ([^;] ) +;

Replace with

The get {return $1; }
  •  Tags:  
  • C#
  • Related