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