19 implementations of ToUInt16
Microsoft.AspNetCore.Mvc.TagHelpers.Test (1)
LinkTagHelperTest.cs (1)
1293
public ushort
ToUInt16
(IFormatProvider provider)
Microsoft.Build.Engine.UnitTests (1)
BackEnd\TaskBuilderTestTask.cs (1)
56
public ushort
ToUInt16
(IFormatProvider provider) => Value.ToUInt16(provider);
Microsoft.Gen.Logging.Generated.Tests (1)
test\Generators\Microsoft.Gen.Logging\TestClasses\FormattableTestExtensions.cs (1)
43
public readonly ushort
ToUInt16
(IFormatProvider? provider) => throw new NotSupportedException();
System.Private.CoreLib (16)
src\libraries\System.Private.CoreLib\src\System\Boolean.cs (1)
351
ushort IConvertible.
ToUInt16
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
207
ushort IConvertible.
ToUInt16
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
542
ushort IConvertible.
ToUInt16
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\DateTime.cs (1)
1981
ushort IConvertible.
ToUInt16
(IFormatProvider? provider) => throw InvalidCast(nameof(UInt16));
src\libraries\System.Private.CoreLib\src\System\DBNull.cs (1)
67
ushort IConvertible.
ToUInt16
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Decimal.cs (1)
1059
ushort IConvertible.
ToUInt16
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
477
ushort IConvertible.
ToUInt16
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Enum.cs (1)
2182
ushort IConvertible.
ToUInt16
(IFormatProvider? provider) => Convert.ToUInt16(GetValue());
src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
210
ushort IConvertible.
ToUInt16
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
225
ushort IConvertible.
ToUInt16
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
222
ushort IConvertible.
ToUInt16
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
213
ushort IConvertible.
ToUInt16
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Single.cs (1)
472
ushort IConvertible.
ToUInt16
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
204
ushort IConvertible.
ToUInt16
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
220
ushort IConvertible.
ToUInt16
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
219
ushort IConvertible.
ToUInt16
(IFormatProvider? provider)
30 references to ToUInt16
Microsoft.Build.Engine.UnitTests (1)
BackEnd\TaskBuilderTestTask.cs (1)
56
public ushort ToUInt16(IFormatProvider provider) => Value.
ToUInt16
(provider);
Microsoft.VisualBasic.Core (18)
Microsoft\VisualBasic\CompilerServices\Conversions.vb (15)
103
Return CBool(ValueInterface.
ToUInt16
(Nothing))
247
Return CByte(ValueInterface.
ToUInt16
(Nothing))
394
Return CSByte(ValueInterface.
ToUInt16
(Nothing))
537
Return CShort(ValueInterface.
ToUInt16
(Nothing))
683
Return CUShort(ValueInterface.
ToUInt16
(Nothing))
716
Return ValueInterface.
ToUInt16
(Nothing)
826
Return CInt(ValueInterface.
ToUInt16
(Nothing))
971
Return CUInt(ValueInterface.
ToUInt16
(Nothing))
1117
Return CLng(ValueInterface.
ToUInt16
(Nothing))
1264
Return CULng(ValueInterface.
ToUInt16
(Nothing))
1423
Return CDec(ValueInterface.
ToUInt16
(Nothing))
1663
Return CSng(ValueInterface.
ToUInt16
(Nothing))
1808
Return CDbl(ValueInterface.
ToUInt16
(Nothing))
2274
Return CStr(ValueInterface.
ToUInt16
(Nothing))
2427
Case TypeCode.UInt16 : Return CastUInt16Enum(iconv.
ToUInt16
(Nothing), TargetType)
Microsoft\VisualBasic\CompilerServices\ObjectType.vb (1)
3656
Return iconv.
ToUInt16
(Nothing)
Microsoft\VisualBasic\Conversion.vb (2)
307
Return Hex(ValueInterface.
ToUInt16
(Nothing))
420
Return Oct(ValueInterface.
ToUInt16
(Nothing))
System.Data.Common (3)
System\Data\Common\SQLConvert.cs (1)
525
return ((IConvertible)(string)value).
ToUInt16
(formatProvider);
System\Data\Common\UInt16Storage.cs (2)
206
value = ((IConvertible)value).
ToUInt16
(FormatProvider);
242
_values[record] = ((IConvertible)value).
ToUInt16
(FormatProvider);
System.Private.CoreLib (6)
src\libraries\System.Private.CoreLib\src\System\Convert.cs (6)
151
TypeCode.UInt16 => v.
ToUInt16
(provider),
190
return value.
ToUInt16
(provider);
262
return ic.
ToUInt16
(provider);
870
return value == null ? (ushort)0 : ((IConvertible)value).
ToUInt16
(null);
876
return value == null ? (ushort)0 : ((IConvertible)value).
ToUInt16
(provider);
974
return ((IConvertible)value).
ToUInt16
(null);
System.Windows.Forms.Design (2)
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (2)
1367
ushort leftValue = left.
ToUInt16
(null);
1368
ushort rightValue = right.
ToUInt16
(null);