c# - TryParse create inline parameter? -


Is there any way to create a convertible inline in C #? Something like this:

  int x = int.TryParse ("5", out of the new int intender) IntOutParameter: 0;  

Do you think it is more useful than creating a variable and then never using it again?

Announcement Expressions - The proposed feature list for the next version of C # (version 6) was on the list.

You think this is only useful. For example, call a complete TryParse (there is no need to give a statement to declare a variable).

Although from current work to C # 6

I'm sure I'm not the only one hoping that it will return to the future version. This is included in C # 7 as the declaration ( new ):

  int x = int.TryParse ("5", int intOutParameter )? IntOutParameter: 0;  

Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -