UInt16 num = 10;
UInt16 num1 = 10; UInt16 num2 = 20; UInt16 result = (UInt16)(num1 + num2);
string str = "50"; UInt16 result = UInt16.Parse(str);In these examples, System.UInt16 is used to represent and manipulate unsigned 16-bit integers. The package library used is System.