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.13.91, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7)), IConvertible, IEquatable`1([NpgsqlTypes.BitString, Npgsql, Version=2.0.13.91, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7)), IEnumerable, IFormattable, ICollection`1([System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)), IEnumerable`1([System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)), IComparable, IList`1([System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089))
[C#]
public struct BitString : 91, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7]], IConvertible, 91, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7]], IEnumerable, IFormattable, 0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], 0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], IComparable, 0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]

#### 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