Simple light bit vector that provides easy int/bool access to a 32 bit storage... Standard usage: private static readonly BitVector32.Section first = BitVector32.CreateSection(2); private static readonly BitVector32.Section second = BitVector32.CreateSection(1, first); private static readonly BitVector32.Section third = BitVector32.CreateSection(5, second); private static readonly int MaskOne = BitVector32.CreateMask(); private static readonly int MaskTwo = BitVector32.CreateMask(MaskOne); BitVector32 b = new BitVector32(); b[first] = 1;// max of 2! b[third] = 3;// max of 5! BitVector32 anotherB = new BitVector32(); anotherB[MaskOne] = true;
[Visual Basic] Public Structure BitVector32 [C#] public struct BitVector32 [C++] public __value struct BitVector32
[JScript] In JScript, you can use the structures in the NGWS frameworks, but you cannot define your own.
[To be supplied.]
Namespace: System.WinForms
Assembly: System.WinForms.dll