locked
How to add two or more collection RRS feed

  • Question

  • I have 3 lists inside each i am having CD class inside CD there are 5-6 nested classes (CDA, CDB, CDC ...) inside each nested class i have 25-30 double collection properties.

    I want to add these 3 lists....
    Can anyone help me plz??
    Wednesday, December 7, 2011 9:05 AM

Answers

  • Presuming your lists are List<T>, perhaps something along the lines of: CDA.AddRange(CDB);
    • Edited by TSoftware-Old Wednesday, December 7, 2011 1:18 PM Correction
    • Proposed as answer by RohitArora Monday, December 19, 2011 11:06 AM
    • Marked as answer by Bob ShenModerator Tuesday, December 20, 2011 2:45 AM
    Wednesday, December 7, 2011 1:16 PM

All replies

  • Requirement-

     

    CD contains chart data for one analysis which is used to generate charts based on analysis you did. CDA , CDB ... each nested class containing data to generate one chart. i mean CDA for one chart . CDB for 2nd chart.. CDC for 3rd chart...... like this..
    Now client wants to generate charts by selecting two or more analysis.
    So now i am struggling to find out how can I add data for multiple analysis.

    Wednesday, December 7, 2011 9:58 AM
  • Presuming your lists are List<T>, perhaps something along the lines of: CDA.AddRange(CDB);
    • Edited by TSoftware-Old Wednesday, December 7, 2011 1:18 PM Correction
    • Proposed as answer by RohitArora Monday, December 19, 2011 11:06 AM
    • Marked as answer by Bob ShenModerator Tuesday, December 20, 2011 2:45 AM
    Wednesday, December 7, 2011 1:16 PM
  • Hi Mysterious,

    How's it going? Do you have any updates about the issue?


    Bob Shen [MSFT]
    MSDN Community Support | Feedback to us
    Wednesday, December 14, 2011 8:31 AM
    Moderator