stevebravo
Gebruiker
- Lid geworden
- 16 jan 2010
- Berichten
- 156
Ik gebruik deze code, maar ik begrijp nog niet helemaal waarom de uitkomst van(Console.WriteLine(packedBits.Data);
) 196634 is.. kan iemand mij helpen spitten?
) 196634 is.. kan iemand mij helpen spitten?
Code:
BitVector32.Section firstSection =
BitVector32.CreateSection(10);
BitVector32.Section secondSection =
BitVector32.CreateSection(50, firstSection);
BitVector32.Section thirdSection =
BitVector32.CreateSection(500, secondSection);
BitVector32 packedBits = new BitVector32(0);
packedBits[firstSection] = 10;
packedBits[secondSection] = 1;
packedBits[thirdSection] = 192;
Console.WriteLine(packedBits[firstSection]);
Console.WriteLine(packedBits[secondSection]);
Console.WriteLine(packedBits[thirdSection]);
Console.WriteLine(packedBits.Data);
Console.WriteLine(packedBits);