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

#### 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 Npgsql.dll)

#### See Also

BitString Members | NpgsqlTypes Namespace