简体   繁体   中英

Meaning of 1U in C# and OPEN XML SDK 2.0

I always see the 1U code in C# especially in styles in OPEN XML SDK 2.0. Does anybody know the meaning of it?

U表示数字是无符号常量。

It's an unsigned literal .

For example, if you do:

var u = 1U;
Console.Write(u.GetType());

It'll tell you that it's a System.UInt32 .

See the C# spec for details.

它指定您具有值为1的unsigned int

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM