|
Listing 10-21 extracted from chapter The .NET 2 type system from a C#2 point of view
Listing 10-20< > Listing 10-22
This listing can be compiled with the command line: csc.exe /target:exe Example_10_21.cs Errors: 0 Warnings: 0
Example_10_21.cs
class Program {
static void Main() {
uint a = 11;
uint b = a << 2; // 'a' is not modified, 'b' is equal to 44.
uint c = a >> 2; // 'a' is not modified, 'c' is equal to 2.
}
}
Copyright Patrick Smacchia 2006 2007
|