C# 7.0 'out variables' in Visual Studio 2015 -
this question has answer here:
- how use c#7 visual studio 2015? 1 answer
i compile c# 7.0 solution in visual studio 2015, have syntax error:
errormessage : 'datetime' type used variable.
this related 'out variables' changed in c# 7.0
unfortunately can not use vs2017 (community) , this tutorial - not working (master branch adapted vs2017 now).
do have idea how solve problem?
you need declare datetime variable outside call , pass parameter out keyword this:
datetime yuorparam; method( ..., ..., out yourparam);
Comments
Post a Comment