5
Reply

what happened if we pass optional paramater in 3.5 or older version

Khargesh Rajput

Khargesh Rajput

May 28, 2015
1.7k
0

    but before 3.0 framework optional parameter is not supported http://forums.asp.net/t/1469867.aspx?Optional+parameters+in+C+3+

    Khargesh Rajput
    June 16, 2015
    2

    It will give compilation error. It is not supported in 3.5.

    Rajesh Singh
    December 05, 2015
    0

    Optional parameter is a C# 4.0 language feature included with Visual Studio 2010 or .Net framework 4.0. So .Net framework 3.5 or older version will not allow to compile optional parameter.

    Optional parameter is a C# 4.0 language feature included with Visual Studio 2010 or .Net framework 4.0. So .Net framework 3.5 or older version will not allow to compile optional parameter.

    Sujeet Suman
    June 17, 2015
    0

    Optional parameter is nullable type if you pass the parameter value then compiler will take the value , else compiler will take defualt value and there is not .net framework dependency.

    Khan Abrar Ahmed
    June 16, 2015
    0