Introduction
Currently I’m working on a module which I have to make use of optional parameters in C#.
Problem Background
There was an error saying “Feature optional parameter cannot be used because it is not part of the 3.0 c#” when I tried to create a method with optional parameters.
Solution
Do these property change in project.
- Go to Project
- Right Click on the project
- Go to properties
- Go to Build Tab
- Click on ‘Andvanced’
- Set language version to ‘default’
- Save the project
Conclusion
Thats all. Hope this will help.
No comments:
Post a Comment