The final advantage of using const over readonly is performance: Known constant values can generate slightly more efficient code than the variable accesses necessary for readonly values.
英
美
释义
使用const而不是readonly的最后一点优势就是性能:使用已知常量值的代码效率要比访问readonly值的代码效率稍好一点。
把海词放在桌面上,查词最方便
触屏版
|
电脑版
©2003 - 2025 海词词典(Dict.cn)
立即下载