# get-uint16.ps1
# Uint16 sample using PowerShell
# Thomas Lee - tfl@psp.co.uk
# create uint16
[system.uint16] $uint16 = 0
# show membership
$uint16 | gm
""
# Print out value
"Uint16 = {0}" -f $uint16
This script produces the following output
PSH [C:\foo]: .\get-uint.ps1
TypeName: System.UInt16
Name MemberType Definition
---- ---------- ----------
CompareTo Method System.Int32 CompareTo(Object value), System.Int32 CompareTo(UInt16 value)
Equals Method System.Boolean Equals(Object obj), System.Boolean Equals(UInt16 obj)
GetHashCode Method System.Int32 GetHashCode()
GetType Method System.Type GetType()
GetTypeCode Method System.TypeCode GetTypeCode()
ToString Method System.String ToString(String format, IFormatProvider provider), System.String ToString(), System.String ToString(IFormatPr...
Uint16 = 0