Click or drag to resize

ExtensionsConvertionsToUShort Method (Byte)

Returns a 16-bit signed integer converted from four bytes at a specified position in a byte array.

Namespace:  Cauldron
Assembly:  Cauldron (in Cauldron.dll) Version: 3.2.0.2
Syntax
public static ushort ToUShort(
	this byte[] target
)

Parameters

target
Type: SystemByte
An array of bytes.

Return Value

Type: UInt16
A 16-bit signed integer formed by four bytes

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also