Converts four bytes beginning at the specified index in the specified array to a 32-bit signed integer value.
[Visual Basic] Public Shared Function ToInt32( _ ByVal value() As Byte, _ ByVal startIndex As Integer _ ) As Integer [C#] public static int ToInt32( byte[] value, int startIndex ); [C++] public: static int ToInt32( unsigned char* value[], int startIndex ); [JScript] public static function ToInt32( value : Byte[], startIndex : int ) : int;
Returns a 32-bit signed integer formed from four unsigned bytes beginning at startIndex.
Exception Type | Condition |
---|---|
ArgumentException | value is null. |
ArgumentException | startIndex is a value that results in invalid access to the array. |
BitConverter Class | BitConverter Members | System Namespace