This is, probably, a very simple answer for someone. I have a method with an Optional Parameter
like so;
public static Email From(string emailAddress, string name = "")
{
var email = new Email();
email.Message.From = new MailAddress(emailAddress, name);
return email;
}
Now, I must target .Net 3.5 and it was my understanding that Optional Parameters
are part of .Net 4. However, my project builds and I double checked the Properties - Application page which states 3.5 as the target framework. Then I found a article on MSDN saying it's a feature of C#4 in VS2010. (MSDN Article --> Named and Optional Arguments)
Can someone help clarify this for me. C#4 does not require .Net4? What are Optional Parameters ACTUALLY a part of?
Thank you.