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. v1.1 equivalent of v2.0's "List" class??

v1.1 equivalent of v2.0's "List" class??

Scheduled Pinned Locked Moved C#
questionsysadminwindows-admindata-structuresannouncement
3 Posts 3 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.
  • G Offline
    G Offline
    Goalie35
    wrote on last edited by
    #1

    I began working on my first project for a new company back in early September. When I started my project, I told my boss I would be coding in the 2.0 framework, to which he said "Great, sounds good." So naturally, after completing my project yesterday, what did I discover? The company's servers are only compatible with the 1.1 framework because they're using IIS 5.0 on that server(IIS 5.0 can only allow 1 version of the framework for all projects as opposed to IIS 6.0 which can accomodate different framework versions for different projects). So now, I have to go back and downgrade all of my code to be 1.1 compatible. One question I have is what's the equivalent of the "List" class(i.e. "List") in version 1.1? I need to declare an array of an unknown size that can increase its elements dynamically as necessary. Thanks. -Goalie35

    S S 2 Replies Last reply
    0
    • G Goalie35

      I began working on my first project for a new company back in early September. When I started my project, I told my boss I would be coding in the 2.0 framework, to which he said "Great, sounds good." So naturally, after completing my project yesterday, what did I discover? The company's servers are only compatible with the 1.1 framework because they're using IIS 5.0 on that server(IIS 5.0 can only allow 1 version of the framework for all projects as opposed to IIS 6.0 which can accomodate different framework versions for different projects). So now, I have to go back and downgrade all of my code to be 1.1 compatible. One question I have is what's the equivalent of the "List" class(i.e. "List") in version 1.1? I need to declare an array of an unknown size that can increase its elements dynamically as necessary. Thanks. -Goalie35

      S Offline
      S Offline
      ssoffline
      wrote on last edited by
      #2

      use arraylist

      Sameer Sood Microsoft Student partner NIT Durgapur,india

      1 Reply Last reply
      0
      • G Goalie35

        I began working on my first project for a new company back in early September. When I started my project, I told my boss I would be coding in the 2.0 framework, to which he said "Great, sounds good." So naturally, after completing my project yesterday, what did I discover? The company's servers are only compatible with the 1.1 framework because they're using IIS 5.0 on that server(IIS 5.0 can only allow 1 version of the framework for all projects as opposed to IIS 6.0 which can accomodate different framework versions for different projects). So now, I have to go back and downgrade all of my code to be 1.1 compatible. One question I have is what's the equivalent of the "List" class(i.e. "List") in version 1.1? I need to declare an array of an unknown size that can increase its elements dynamically as necessary. Thanks. -Goalie35

        S Offline
        S Offline
        Stefan Troschuetz
        wrote on last edited by
        #3

        ArrayList would be the quickest replacement. If you want your code to remain type-safe, implement custom collections for each type derived from CollectionBase[^] as shown in the example.


        "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook

        www.troschuetz.de

        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