System Namespace Convert Class
Converts the value of a given Object to a 16-bit signed integer.
[ VB ]
Overloads Public Shared Function ToInt16 ( _
ByVal value As Object _
) As Short
[ C# ]
public static short ToInt16 (
object value
);
[ C++ ]
public: static short ToInt16 (
Object* value
);
[ JScript ]
public static function ToInt16 (
value : Object
) : Int16;
- value
- An Object that implements the IConvertible interface or a null reference ( Nothing in Visual Basic ).
The 16-bit signed integer equivalent of value, or zero if value is a null reference ( Nothing in Visual Basic ).
The return value is the result of invoking the IConvertible.ToInt16 method of the underlying type of value.
Convert Members Convert.ToInt16 Overload List Object