I’ve created a dll .
The dll had a method,which is having 4 optional parameters and 2 required parameters.
When i try to call the method in VS2010, it’s working well and good even though i supply only 2 required parameters.
But when i tried to call the method in VS2008, it is showing error message ‘No overload for method takes 2 arguments’.
Do i need to pass the 4 optional parameters values as null inorder to get rid of this ?
Please help
Thanks,
Optional parameters are new to Visual Studio 2010 so aren’t supported in 2008. You need to explictly pass arguments for the optional parameters.
Can you use optional parameters in code targeting .NET 3.5?