|   | BitwiseCastToUInt16 Method | 
        
        Performs proper bitwise conversion between signed and unsigned value
        
        Namespace: GSFAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.257-beta+00aa2366fbb9ec75f636ebc7cfa610e3826a727c
 Syntax
SyntaxPublic Shared Function ToUInt16 ( 
	signedInt As Short
) As UShort
GSF.BitwiseCast.ToUInt16 = function(signedInt);
Parameters
- signedInt  Int16
- Signed integer that is passed in to be converted to an unsigned short.
Return Value
UInt16The unsigned short value.
 Remarks
RemarksThis function is useful because Convert.ToUInt16 will throw an OverflowException for values less than zero.
For example, this function correctly converts signed 16-bit integer -32768 (i.e., Int16.MinValue) to unsigned 16-bit integer 32768.
 See Also
See Also