What is the difference between “compile time” and “run time”?

前端 未结 4 1477
滥情空心
滥情空心 2021-02-14 06:25

I do not understand what is meant by the terms \"compile time\" and \"run time\" (or \"runtime\").

I\'m also a bit confused about what \"value type\" and \"reference ty

4条回答
  •  我在风中等你
    2021-02-14 06:44

    "Compile time" is when you build your code - when the compiler converts your source code into IL.

    "Runtime" is when your code is executed - for ASP.NET, when a page request is made. (Personally I prefer the term "execution time" to distinguish between that and "the Common Language Runtime (CLR)" - aka the virtual machine.)

    Value types and reference types are an entirely separate concept, but I have an article about them which you may find useful.

提交回复
热议问题