src\libraries\System.Private.CoreLib\src\System\UInt16.cs (29)
61return (int)m_value - (int)(((ushort)value).m_value);
68return (int)m_value - (int)value;
77return m_value == ((ushort)obj).m_value;
83return m_value == obj;
89return (int)m_value;
95return Number.UInt32ToDecStr(m_value);
100return Number.UInt32ToDecStr(m_value);
105return Number.FormatUInt32(m_value, format, null);
110return Number.FormatUInt32(m_value, format, provider);
115return Number.TryFormatUInt32(m_value, format, provider, destination, out charsWritten);
121return Number.TryFormatUInt32(m_value, format, provider, utf8Destination, out bytesWritten);
181return Convert.ToBoolean(m_value);
186return Convert.ToChar(m_value);
191return Convert.ToSByte(m_value);
196return Convert.ToByte(m_value);
201return Convert.ToInt16(m_value);
206return m_value;
211return Convert.ToInt32(m_value);
216return Convert.ToUInt32(m_value);
221return Convert.ToInt64(m_value);
226return Convert.ToUInt64(m_value);
231return Convert.ToSingle(m_value);
236return Convert.ToDouble(m_value);
241return Convert.ToDecimal(m_value);
392int IBinaryInteger<ushort>.GetShortestBitLength() => (sizeof(ushort) * 8) - LeadingZeroCount(m_value);
400if (BinaryPrimitives.TryWriteUInt16BigEndian(destination, m_value))
413if (BinaryPrimitives.TryWriteUInt16LittleEndian(destination, m_value))