Can C# compiler compile a VB.Net code?

后端 未结 4 1949
离开以前
离开以前 2021-01-05 14:46

I found following on a ASP.NET book. I am learning and curious about following content.

The second major advantage of an IL architecture is that it en

4条回答
  •  有刺的猬
    2021-01-05 15:26

    There is a compiler for C# (CSC.Exe) and one for VB.NET (Vbc.exe). These compilers do not generate machine code but compile the respective language to intermediate language (IL). When executing the program (or running the website) on a computer, IL is interpreted and converted into machine code that is executed on the processor.
    The compilers that ASP.NET uses are the same that are also used for other .NET programs, e.g. Windows applications.

提交回复
热议问题