Can you use optional parameters in code targeting .NET 3.5?

后端 未结 7 938
独厮守ぢ
独厮守ぢ 2020-11-30 10:46

I\'m looking to write a library that uses the new optional parameters feature of C# 4.0, but I want to target it to the 3.5 version of the framework. Is this possible?

7条回答
  •  没有蜡笔的小新
    2020-11-30 11:17

    With VS2010 RC, I was able to create a .NET 3.5 application that uses optional parameters in C#.

    So yes, it's all about syntactic sugar.

提交回复
热议问题