17 implementations of ToInt16
mscorlib (17)
system\boolean.cs (1)
256
short IConvertible.
ToInt16
(IFormatProvider provider) {
system\byte.cs (1)
209
short IConvertible.
ToInt16
(IFormatProvider provider) {
system\char.cs (1)
454
short IConvertible.
ToInt16
(IFormatProvider provider) {
system\datetime.cs (1)
1599
short IConvertible.
ToInt16
(IFormatProvider provider) {
system\dbnull.cs (1)
68
short IConvertible.
ToInt16
(IFormatProvider provider) {
system\decimal.cs (1)
1222
short IConvertible.
ToInt16
(IFormatProvider provider) {
system\double.cs (1)
323
short IConvertible.
ToInt16
(IFormatProvider provider) {
system\enum.cs (1)
976
short IConvertible.
ToInt16
(IFormatProvider provider)
system\int16.cs (1)
222
short IConvertible.
ToInt16
(IFormatProvider provider) {
system\int32.cs (1)
195
short IConvertible.
ToInt16
(IFormatProvider provider) {
system\int64.cs (1)
174
short IConvertible.
ToInt16
(IFormatProvider provider) {
system\sbyte.cs (1)
230
short IConvertible.
ToInt16
(IFormatProvider provider) {
system\single.cs (1)
293
short IConvertible.
ToInt16
(IFormatProvider provider) {
system\string.cs (1)
3385
short IConvertible.
ToInt16
(IFormatProvider provider) {
system\uint16.cs (1)
197
short IConvertible.
ToInt16
(IFormatProvider provider) {
system\uint32.cs (1)
179
short IConvertible.
ToInt16
(IFormatProvider provider) {
system\uint64.cs (1)
174
short IConvertible.
ToInt16
(IFormatProvider provider) {
18 references to ToInt16
mscorlib (8)
system\convert.cs (6)
229
return v.
ToInt16
(provider);
286
return value.
ToInt16
(provider);
357
return ic.
ToInt16
(provider);
812
return value == null? (short)0: ((IConvertible)value).
ToInt16
(null);
816
return value == null? (short)0: ((IConvertible)value).
ToInt16
(provider);
901
return ((IConvertible)value).
ToInt16
(null);
system\variant.cs (2)
484
v = new Variant(ic.
ToInt16
(provider));
597
v = new Variant(iv.
ToInt16
(provider));
System.AddIn.Contract (1)
System\Addin\Contract\RemoteArgument.cs (1)
217
shortToUse = convertibleValue.
ToInt16
(null);
System.Data (3)
fx\src\data\System\Data\Common\Int16Storage.cs (2)
180
value = ((IConvertible)value).
ToInt16
(FormatProvider);
209
values[record] = ((IConvertible)value).
ToInt16
(FormatProvider);
fx\src\data\System\Data\Common\SQLConvert.cs (1)
580
return ((IConvertible)(string)value).
ToInt16
(formatProvider);
System.Management (5)
property.cs (5)
646
((short[])wmiValue) [i] = ((IConvertible)((System.Byte)(arrayValue[i]))).
ToInt16
(null);
656
((short[])wmiValue) [i] = ((IConvertible)((System.SByte)(arrayValue[i]))).
ToInt16
(null);
731
((short[])wmiValue) [i] = ((IConvertible)((System.Char)(arrayValue[i]))).
ToInt16
(null);
788
wmiValue = ((IConvertible)((System.SByte)val)).
ToInt16
(null);
828
wmiValue = ((IConvertible)((System.Char)val)).
ToInt16
(null);
System.Xml (1)
System\Xml\Serialization\CodeExporter.cs (1)
282
return ((IConvertible)value).
ToInt16
(null);