Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

struct System.​Collections.​Specialized.​BitVector32

Assembly: System.Collections.Specialized

Implemented Interfaces

Provides a simple structure that stores Boolean values and small integers in 32 bits of memory.

Properties

public int
Data
Gets the value of the <see cref="T:System.Collections.Specialized.BitVector32" /> as an integer.
public int
Item
public bool
Item

Methods

public static int
CreateMask​()
Creates the first mask in a series of masks that can be used to retrieve individual bits in a <see cref="T:System.Collections.Specialized.BitVector32" /> that is set up as bit flags.
Returns A mask that isolates the first bit flag in the <see cref="T:System.Collections.Specialized.BitVector32" /> .
public static int
CreateMask​(int previous)
Creates an additional mask following the specified mask in a series of masks that can be used to retrieve individual bits in a <see cref="T:System.Collections.Specialized.BitVector32" /> that is set up as bit flags.
Returns A mask that isolates the bit flag following the one that <paramref name="previous" /> points to in <see cref="T:System.Collections.Specialized.BitVector32" /> .
previous The mask that indicates the previous bit flag.
public static Section
CreateSection​(short maxValue)
Creates the first <see cref="T:System.Collections.Specialized.BitVector32.Section" /> in a series of sections that contain small integers.
Returns A <see cref="T:System.Collections.Specialized.BitVector32.Section" /> that can hold a number from zero to <paramref name="maxValue" /> .
maxValue A 16-bit signed integer that specifies the maximum value for the new <see cref="T:System.Collections.Specialized.BitVector32.Section" /> .
public static Section
CreateSection​(short maxValue, Section previous)
public bool
Equals​(BitVector32 other)
Indicates whether the current instance is equal to another instance of the same type.
Returns <see langword="true" /> if the current instance is equal to the other instance; otherwise, <see langword="false" /> .
other An instance to compare with this instance.
public bool
Equals​(object o)
Determines whether the specified object is equal to the <see cref="T:System.Collections.Specialized.BitVector32" /> .
Returns <see langword="true" /> if the specified object is equal to the <see cref="T:System.Collections.Specialized.BitVector32" /> ; otherwise, <see langword="false" /> .
o The object to compare with the current <see cref="T:System.Collections.Specialized.BitVector32" /> .
public int
GetHashCode​()
Serves as a hash function for the <see cref="T:System.Collections.Specialized.BitVector32" /> .
Returns A hash code for the <see cref="T:System.Collections.Specialized.BitVector32" /> .
public string
ToString​()
Returns a string that represents the current <see cref="T:System.Collections.Specialized.BitVector32" /> .
Returns A string that represents the current <see cref="T:System.Collections.Specialized.BitVector32" /> .
public static string
ToString​(BitVector32 value)
Returns a string that represents the specified <see cref="T:System.Collections.Specialized.BitVector32" /> .
Returns A string that represents the specified <see cref="T:System.Collections.Specialized.BitVector32" /> .
value The <see cref="T:System.Collections.Specialized.BitVector32" /> to represent.
protected void
Finalize​()
Inherited from object
public Type
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object