Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
0u在c#中是什么意思?示例上下文:
0u
uint n = _seconds; while (n > 0u) { // TODO };
var a = 0U; // a is unsigned int
如同
var a = (uint)0; // a is unsigned int
检查这个
它的含义与 相同((uint)0)。
((uint)0)
就像 0L 将 0 定义为 long 一样,0u 将 0 定义为 unsigned int ( uint)。
uint
它是一个uint(或无符号整数)的短后缀
很好的总结:http: //www.dotnetperls.com/suffix