Shifts the string operand bits to the right, filling with zeros to produce a string of the same length.
A right-shifted bitstring.
The behaviour of RShift 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 left-shift, and operands greater than the length of the string will shift it entirely, resulting in a zero-filled string. It also performs a logical shift, rather than an arithmetic shift, so it always sets the vacated bit positions to zero (like PostgreSQL and like .NET for unsigned integers but not for signed integers).
BitString Class | NpgsqlTypes Namespace