#ifndef _SYSTEM_UINT16_ #define _SYSTEM_UINT16_ #include namespace System { class String; // Represents an unsigned, 16-bit integer. struct UInt16 : IComparable, IEquatable, Object { private: ushort value; public: static const ushort MaxValue; static const ushort MinValue; UInt16(); UInt16(const UInt16 &obj); UInt16(const ushort &obj); int CompareTo(const UInt16 other) const; bool Equals(Object const * const obj) const; bool Equals(const UInt16 other) const; int GetHashCode() const; int GetType() const; const char* ToString() const; static const char* ToString(const ushort value); static bool TryParse(const String& str, out ushort* result); operator ushort() const; bool operator==(const UInt16& right) const; bool operator==(const ushort& right) const; bool operator!=(const UInt16& right) const; bool operator!=(const ushort& right) const; }; } #endif //_SYSTEM_UINT16_