在表單按鈕 Click 事件呼叫 TestAlias(),輸出如下:
byte -> System.Byte
char -> System.Char
short -> System.Int16
int -> System.Int32
long -> System.Int64
uint -> System.UInt32
bool -> System.Boolean
上述輸出完整證明了 C# 關鍵字(別名)與 .NET 執行階段型別(System.*)的一一對應關係。這也是「裝箱/拆箱」發生的型別基礎:int 實際上就是 System.Int32,屬於實值型別,裝箱時會包裝成 object(參考型別)。