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
Post a Comment