src\runtime\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);
175return Convert.ToBoolean(m_value);
180return Convert.ToChar(m_value);
185return Convert.ToSByte(m_value);
190return Convert.ToByte(m_value);
195return Convert.ToInt16(m_value);
200return m_value;
205return Convert.ToInt32(m_value);
210return Convert.ToUInt32(m_value);
215return Convert.ToInt64(m_value);
220return Convert.ToUInt64(m_value);
225return Convert.ToSingle(m_value);
230return Convert.ToDouble(m_value);
235return Convert.ToDecimal(m_value);
373int IBinaryInteger<ushort>.GetShortestBitLength() => (sizeof(ushort) * 8) - LeadingZeroCount(m_value);
381if (BinaryPrimitives.TryWriteUInt16BigEndian(destination, m_value))
394if (BinaryPrimitives.TryWriteUInt16LittleEndian(destination, m_value))