none
Update to C# 7.2 RRS feed

  • Question

  • Hello,

    I want use extension method with ref but i have an error:

     'ref extension methods' is not available in C# 7.0. Please use language version 7.2 or greater.

    My visual studio 2017 is 15.6.4 . How can solve this problem?

    Thanks

    Tuesday, March 27, 2018 1:18 AM

Answers

  • Try going into the project's properties, on the Build tab hit the Advanced button, and select the language version in the resulting dialogue.

    • Proposed as answer by Fei HuModerator Wednesday, March 28, 2018 9:33 AM
    • Marked as answer by Arash_89 Thursday, March 29, 2018 2:04 PM
    Tuesday, March 27, 2018 3:55 AM