I have this code in an assembly:
public class Class1
{
public const int x = 10;
}
and in a different assembly I have:<
This is a technique called constant folding used in compiling. In short, the compiler look for values that can be determined at compile time, computes those values, and write them directly in the exe file. This speeds up the execution of the final machine code. This technique applies to other many compiled languages, such as C, C++ as well.