compile time constant 中文意思是什麼
compile time constant
解釋
編譯時常數-
Specifies that the field value is a compile - time constant
指定該欄位值是一個編譯時常數。 -
A constant expression is an expression that can be fully evaluated at compile time
常數表達式是在編譯時可被完全計算的表達式。 -
In a checked context, a compile - time error occurs if the operation is a constant expression. otherwise, an
在所檢查的上下文中,如果該運算是常數表達式,則發生編譯時錯誤。 -
Field is a compile - time constant, the
欄位為編譯時常數,而 -
A compile - time constant will have the same value each time an application runs, while a run - time constant may change each time
應用程序每次運行時,編譯時常數都具有相同的值,而運行時常數的值可能會發生變化。 -
A compile - time constant is computed at the time the code is compiled, while a run - time constant can only be computed while the application is running
編譯時常數和運行時常數編譯時常數在編譯代碼時進行計算,而運行時常數則只能在應用程序運行時進行計算。 -
Field is very similar to a constant, except that the c compiler does not have access to the value of a static read - only field at compile time, only at run time
欄位非常類似於常數,只不過c #編譯器不能在編譯時訪問靜態只讀欄位的值,而只能在運行時訪問。
分享友人