Compatible .NET csc and Mono mcs

I know that .NET and Mono are binary compatible, but given the source code, do csc and mcs produce an exact 100% identical binary CLI executable? Is it possible to determine if the executable is compiled using csc or mcs?

+5
source share
2 answers

Many things are not fully defined in the specification or are implementation-specific extensions.

Examples of incomplete ones:

  • ; ecma; MS, # 4.0, , IIRC
  • Expression ( ); " " ( )

:

  • P/Invoke
  • COM (.. new )

, : IL, csc [g] mcs, csc.

: , , ( DEBUG TRACE) .

+4

, . MS # .

- .

, , , lamdas,...

, , , . , .

, , .

+1

All Articles