Npgsql Api Docs |

# BitString Structure

Implements a bit string; a collection of zero or more bits which can each be 1 or 0.

BitString's behave as a list of bools, though like most strings and unlike most collections the position tends to be of as much significance as the value.

BitStrings are often used as masks, and are commonly cast to and from other values.

For a list of all members of this type, see BitString Members.

System.Object
System.ValueType
NpgsqlTypes.BitString

[Visual Basic]
Public Structure BitString
Implements IComparable`1([NpgsqlTypes.BitString, Npgsql, Version=2.0.12.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7)), IFormattable, IEnumerable, IEnumerable`1([System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)), IList`1([System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)), IComparable, IConvertible, ICollection`1([System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)), IEquatable`1([NpgsqlTypes.BitString, Npgsql, Version=2.0.12.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7))
[C#]
public struct BitString : 0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7]], IFormattable, IEnumerable, 0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], 0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], IComparable, IConvertible, 0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], 0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7]]

#### Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

#### Requirements

Namespace: NpgsqlTypes

Assembly: Npgsql (in )

#### See Also

BitString Members | NpgsqlTypes Namespace