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. ArrayList -> SortedList -> SortedList. Right ?

ArrayList -> SortedList -> SortedList. Right ?

Scheduled Pinned Locked Moved C#
questiondatabasejson
8 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.
  • S Offline
    S Offline
    Saikek
    wrote on last edited by
    #1

    Hello everyone! I need to store such data: Partitions(ex: english), Authors(ex: Shakespeare), Books(ex:Otello). Ierarchy is Partitions->Authors->Books. What is the best way to store data ? I used a ArrayList -> SortedList -> SortedList and serialization. I don't want to use SQL, because it cannot be installed on each computer, where this program will be used.

    One nation - underground

    V 1 Reply Last reply
    0
    • S Saikek

      Hello everyone! I need to store such data: Partitions(ex: english), Authors(ex: Shakespeare), Books(ex:Otello). Ierarchy is Partitions->Authors->Books. What is the best way to store data ? I used a ArrayList -> SortedList -> SortedList and serialization. I don't want to use SQL, because it cannot be installed on each computer, where this program will be used.

      One nation - underground

      V Offline
      V Offline
      Vikram A Punathambekar
      wrote on last edited by
      #2

      For storing it, I would recommend XML. For displaying it, you can go for a TreeView.

      Cheers, Vıkram.


      After all is said and done, much is said and little is done.

      S 1 Reply Last reply
      0
      • V Vikram A Punathambekar

        For storing it, I would recommend XML. For displaying it, you can go for a TreeView.

        Cheers, Vıkram.


        After all is said and done, much is said and little is done.

        S Offline
        S Offline
        Saikek
        wrote on last edited by
        #3

        Do you mean XML, you mean serialization ? What kind of structure should i use? Is isn't it wery expensive to use a->s->s->? The number of elements won't exceed 1000.

        One nation - underground

        V 1 Reply Last reply
        0
        • S Saikek

          Do you mean XML, you mean serialization ? What kind of structure should i use? Is isn't it wery expensive to use a->s->s->? The number of elements won't exceed 1000.

          One nation - underground

          V Offline
          V Offline
          Vikram A Punathambekar
          wrote on last edited by
          #4

          Dude, I thought your data looked something like this

          English
          Twain
          Tom Sawyer
          Huck Finn
          Orczy
          The Scarlet Pimpernel
          Dawkins
          The God Delusion
          The Selfish Gene
          Hindi
          Premchand
          Panch Parmeshwar

          XML is the best way to store this.

          <yourRootTag>
          <language name="English">
          <author name="Twain">
          <title>Tom Sawyer</title>
          <title>Huck Finn</title>
          </author>
          Other authors go here...
          </language>
          Other languages go here...
          </yourRootTag>

          Cheers, Vıkram.


          After all is said and done, much is said and little is done.

          S 1 Reply Last reply
          0
          • V Vikram A Punathambekar

            Dude, I thought your data looked something like this

            English
            Twain
            Tom Sawyer
            Huck Finn
            Orczy
            The Scarlet Pimpernel
            Dawkins
            The God Delusion
            The Selfish Gene
            Hindi
            Premchand
            Panch Parmeshwar

            XML is the best way to store this.

            <yourRootTag>
            <language name="English">
            <author name="Twain">
            <title>Tom Sawyer</title>
            <title>Huck Finn</title>
            </author>
            Other authors go here...
            </language>
            Other languages go here...
            </yourRootTag>

            Cheers, Vıkram.


            After all is said and done, much is said and little is done.

            S Offline
            S Offline
            Saikek
            wrote on last edited by
            #5

            Thanks for help. Can You tell me where can i read about this way of xml ? Read all Xml related articles ?

            One nation - underground

            V 1 Reply Last reply
            0
            • S Saikek

              Thanks for help. Can You tell me where can i read about this way of xml ? Read all Xml related articles ?

              One nation - underground

              V Offline
              V Offline
              Vikram A Punathambekar
              wrote on last edited by
              #6

              Saikek wrote:

              Can You tell me where can i read about this way of xml ?

              Here?[^] ;)

              Cheers, Vıkram.


              After all is said and done, much is said and little is done.

              J 1 Reply Last reply
              0
              • V Vikram A Punathambekar

                Saikek wrote:

                Can You tell me where can i read about this way of xml ?

                Here?[^] ;)

                Cheers, Vıkram.


                After all is said and done, much is said and little is done.

                J Offline
                J Offline
                J4amieC
                wrote on last edited by
                #7

                You forgot Here[^]

                --- How to get answers to your questions[^]

                S 1 Reply Last reply
                0
                • J J4amieC

                  You forgot Here[^]

                  --- How to get answers to your questions[^]

                  S Offline
                  S Offline
                  Sathesh Sakthivel
                  wrote on last edited by
                  #8

                  :laugh::laugh:

                  Regards, Satips.:rose: Don't walk in front of me, I may not follow; Don't walk behind me, I may not lead; Walk beside me, and just be my friend. - Albert Camus

                  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