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?
I don't have VS2010 installed here to check, but I believe this would be purely a language feature, and therefore should be usable regardless of the framework being targeted.
Edit: Looking at this link (and a few others), it appears that optional parameters compile to method arguments with an [opt] attribute in the il. I don't know if this parameter existed in previous versions of the clr, but still my guess would be that it does.