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?

Allan Chua
  • 9,305
  • 9
  • 41
  • 61
  • possible duplicate of [Letter after a number, what is it called?](http://stackoverflow.com/questions/6681112/letter-after-a-number-what-is-it-called) – Greg Hewgill Jan 24 '12 at 06:13

3 Answers3

1

The U means the number is an unsigned constant.

Greg Hewgill
  • 951,095
  • 183
  • 1,149
  • 1,285
1

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.

sblom
  • 26,911
  • 4
  • 71
  • 95
1

It specifies that you have an unsigned int of value 1.

Bevan
  • 43,618
  • 10
  • 81
  • 133