Scenario:
I have VS 2010 (C # 4 compiler) focused on 3.5 on my client machine.
I am developing ASP.NET applications. I use optional parameters (supported by C # 4) in the class file and compile the code, everything works fine.
Later, a problem was discovered in Runtime, which uses the old (classic version) ASPX function. No function accepts only the arguments x, where x is less than an optional parameter, this is a run-time error.
Does this mean ordinary classes and such use of the C # compiler for the client, while views (aspx) use the compiler on the server, which causes problems if C # 4 is used in view / form files?
source
share