C # CLR / question compilation

I posted this question yesterday about how a C # 4 client deploys an ASP.NET application on a target .NET 3.5 server, and C # 3 weather on a compiled server or C # 4 on a client.

This script was with optional parameters. I know that advanced options are supported, like .NET 1.1. Why can't C # 3 compiled IL code call C # 4 compiled IL code using additional parameters?

Does C # 3 mean an optional attribute?

+3
source share
3 answers

You are right ... IL has just been decorated with w / OptionalAttributes, but it is a calling compiler that decides what to do ...

From Richter:

, , , , , , , ...

, CALLING , , # 4.0 IL...

, , , Lippert, @http://blogs.msdn.com/b/ericlippert/archive/2011/05/16/optional-argument-corner-cases-part-three.aspx

+2

# 4.0. ( .NET VB).

+4

, ? # 3. * 4. * , 2. * vs 3. *, BCL.

, .

+1

All Articles