Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. array of bit in c#....

array of bit in c#....

Scheduled Pinned Locked Moved C#
csharpdata-structuresperformancehelptutorial
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mr mohsen
    wrote on last edited by
    #1

    hi friend's i need to define an array of bit bezause i want to define an array with 2,000,000 cells and i have not enough memory to do it. so i need to define an array of bit or something similar it. thank you for your guide...

    nobody help you... you have to help you yourself and this is success way.

    J N I 3 Replies Last reply
    0
    • M mr mohsen

      hi friend's i need to define an array of bit bezause i want to define an array with 2,000,000 cells and i have not enough memory to do it. so i need to define an array of bit or something similar it. thank you for your guide...

      nobody help you... you have to help you yourself and this is success way.

      J Offline
      J Offline
      Jelle Hissink
      wrote on last edited by
      #2

      Have a look at BitArray my first google result: Some BitArray example Good luck, Jelle Hissink -- modified at 18:53 Sunday 9th September, 2007

      http://www.CodeWise.nl

      1 Reply Last reply
      0
      • M mr mohsen

        hi friend's i need to define an array of bit bezause i want to define an array with 2,000,000 cells and i have not enough memory to do it. so i need to define an array of bit or something similar it. thank you for your guide...

        nobody help you... you have to help you yourself and this is success way.

        N Offline
        N Offline
        Nissim Salomon
        wrote on last edited by
        #3

        Hi Try the following link http://msdn2.microsoft.com/en-us/library/system.collections.bitarray.aspx[^]

        1 Reply Last reply
        0
        • M mr mohsen

          hi friend's i need to define an array of bit bezause i want to define an array with 2,000,000 cells and i have not enough memory to do it. so i need to define an array of bit or something similar it. thank you for your guide...

          nobody help you... you have to help you yourself and this is success way.

          I Offline
          I Offline
          Istvan404
          wrote on last edited by
          #4

          If the bit array doesn't fit and you only need the on/off representation, you can use some long ints and iterate over them. I've done that for some forms where the user had dozens of checked/unchecked options to select. -- i

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups