Click here to Skip to main content
15,914,452 members
Home / Discussions / C#
   

C#

 
GeneralRe: Adding a List to a List with AddRange [modified] Pin
Ista14-Aug-06 4:42
Ista14-Aug-06 4:42 
GeneralRe: Adding a List to a List with AddRange Pin
Judah Gabriel Himango14-Aug-06 6:44
sponsorJudah Gabriel Himango14-Aug-06 6:44 
GeneralRe: Adding a List to a List with AddRange Pin
Ista14-Aug-06 6:48
Ista14-Aug-06 6:48 
GeneralRe: Adding a List to a List with AddRange Pin
Judah Gabriel Himango14-Aug-06 8:30
sponsorJudah Gabriel Himango14-Aug-06 8:30 
GeneralRe: Adding a List to a List with AddRange Pin
Ista14-Aug-06 9:35
Ista14-Aug-06 9:35 
GeneralRe: Adding a List to a List with AddRange Pin
Judah Gabriel Himango15-Aug-06 4:32
sponsorJudah Gabriel Himango15-Aug-06 4:32 
GeneralRe: Adding a List to a List with AddRange [modified] Pin
Ista15-Aug-06 9:37
Ista15-Aug-06 9:37 
AnswerRe: Adding a List to a List with AddRange Pin
Andrew Rissing14-Aug-06 5:06
Andrew Rissing14-Aug-06 5:06 
That does work...try creating a console project and put this code into it.

using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApplication1
{
  class Program
  {
    static void Main(string[] args)
    {
      List<object> lstA = new List<object>();
      List<object> lstB = new List<object>();

      lstA.Add("a");
      lstA.Add("b");
      lstA.Add("c");
      lstA.Add("d");

      lstB.Add("e");
      lstB.Add("f");
      lstB.Add("g");
      lstB.Add("h");

      lstA.AddRange(lstB);

      foreach (string s in lstA)
      {
        Console.WriteLine(s);
      }

      Console.ReadLine();
    }
  }
}


It provides the following output:

a
b
c
d
e
f
g
h


So, it would seem you've got other issues going on.
GeneralRe: Adding a List to a List with AddRange [modified] Pin
Ista14-Aug-06 5:23
Ista14-Aug-06 5:23 
GeneralRe: Adding a List to a List with AddRange Pin
Andrew Rissing14-Aug-06 5:46
Andrew Rissing14-Aug-06 5:46 
GeneralRe: Adding a List to a List with AddRange [modified] Pin
Ista14-Aug-06 6:47
Ista14-Aug-06 6:47 
GeneralRe: Adding a List to a List with AddRange Pin
Andrew Rissing14-Aug-06 6:58
Andrew Rissing14-Aug-06 6:58 
GeneralRe: Adding a List to a List with AddRange Pin
Ista14-Aug-06 7:03
Ista14-Aug-06 7:03 
GeneralRe: Adding a List to a List with AddRange Pin
Andrew Rissing14-Aug-06 8:34
Andrew Rissing14-Aug-06 8:34 
GeneralRe: Adding a List to a List with AddRange [modified] Pin
Ista14-Aug-06 9:41
Ista14-Aug-06 9:41 
GeneralRe: Adding a List to a List with AddRange Pin
Andrew Rissing14-Aug-06 10:04
Andrew Rissing14-Aug-06 10:04 
GeneralRe: Adding a List to a List with AddRange Pin
Ista14-Aug-06 10:11
Ista14-Aug-06 10:11 
Questionhow to make a mp3 playlist and play the songs [modified] Pin
aeliminate14-Aug-06 3:58
aeliminate14-Aug-06 3:58 
AnswerRe: how to make a mp3 playlist and play the songs Pin
Judah Gabriel Himango14-Aug-06 4:59
sponsorJudah Gabriel Himango14-Aug-06 4:59 
GeneralRe: how to make a mp3 playlist and play the songs Pin
aeliminate14-Aug-06 5:32
aeliminate14-Aug-06 5:32 
GeneralRe: how to make a mp3 playlist and play the songs Pin
Judah Gabriel Himango14-Aug-06 5:42
sponsorJudah Gabriel Himango14-Aug-06 5:42 
QuestionC# compiling doubt Pin
cuser_id14-Aug-06 3:40
cuser_id14-Aug-06 3:40 
AnswerRe: C# compiling doubt Pin
Judah Gabriel Himango14-Aug-06 4:57
sponsorJudah Gabriel Himango14-Aug-06 4:57 
QuestionMultithreading, Timers and flickering ListView Pin
Tomi8714-Aug-06 3:30
Tomi8714-Aug-06 3:30 
AnswerRe: Multithreading, Timers and flickering ListView Pin
Ista14-Aug-06 3:43
Ista14-Aug-06 3:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.