HelperWrapAroundLeftShift Method |
Shifts the bits of an int around in a wrapped way. It is useful for creating hashcodes of collections.
Namespace: Bio.UtilAssembly: Bio.Core (in Bio.Core.dll) Version: 2.0.0.1 (2.0.0.1)
Syntax public static int WrapAroundLeftShift(
int someInt,
int count
)
Public Shared Function WrapAroundLeftShift (
someInt As Integer,
count As Integer
) As Integer
public:
static int WrapAroundLeftShift(
int someInt,
int count
)
static member WrapAroundLeftShift :
someInt : int *
count : int -> int
Parameters
- someInt
- Type: SystemInt32
the int to shift - count
- Type: SystemInt32
The number of bits to shift the int
Return Value
Type:
Int32The shifted int.
See Also