Npgsql Api Docs

BitString.LShift Method 

Shifts the string operand bits to the left, filling with zeros to produce a string of the same length.

[Visual Basic]
Public Function LShift( _
   ByVal operand As Integer _
) As BitString
[C#]
public BitString LShift(
   int operand
);

Parameters

operand
The number of bits to shift to the left.

Return Value

A left-shifted bitstring.

Remarks

The behaviour of LShift is closer to what one would expect from dealing with PostgreSQL bit-strings than in using the same operations on integers in .NET

In particular, negative operands result in a right-shift, and operands greater than the length of the string will shift it entirely, resulting in a zero-filled string.

See Also

BitString Class | NpgsqlTypes Namespace