Click here to Skip to main content
15,910,471 members
Home / Discussions / C#
   

C#

 
QuestionProblem wrting to custom config element Pin
CTaylor8926-Aug-09 9:25
CTaylor8926-Aug-09 9:25 
QuestionDrag and Drop Pin
JimLaVine26-Aug-09 9:07
JimLaVine26-Aug-09 9:07 
AnswerRe: Drag and Drop Pin
kKamel26-Aug-09 11:18
kKamel26-Aug-09 11:18 
GeneralRe: Drag and Drop Pin
JimLaVine26-Aug-09 11:20
JimLaVine26-Aug-09 11:20 
GeneralRe: Drag and Drop Pin
kKamel26-Aug-09 11:22
kKamel26-Aug-09 11:22 
AnswerRe: Drag and Drop Pin
Kevin Marois26-Aug-09 11:51
professionalKevin Marois26-Aug-09 11:51 
QuestionMouse Scheme in windows Pin
caiena26-Aug-09 7:11
caiena26-Aug-09 7:11 
AnswerRe: Mouse Scheme in windows Pin
I Believe In GOD26-Aug-09 9:56
I Believe In GOD26-Aug-09 9:56 
QuestionProgress bar [loading progress bar for background data load ] Pin
smoothcriminal26-Aug-09 6:29
smoothcriminal26-Aug-09 6:29 
AnswerRe: Progress bar [loading progress bar for background data load ] Pin
Henry Minute26-Aug-09 7:12
Henry Minute26-Aug-09 7:12 
AnswerRe: Progress bar [loading progress bar for background data load ] Pin
DaveyM6926-Aug-09 7:23
professionalDaveyM6926-Aug-09 7:23 
GeneralRe: Progress bar [loading progress bar for background data load ] Pin
rocky81126-Aug-09 8:12
rocky81126-Aug-09 8:12 
GeneralRe: Progress bar [loading progress bar for background data load ] Pin
Henry Minute26-Aug-09 8:29
Henry Minute26-Aug-09 8:29 
QuestionP2P connections between apps in different LAN environments Pin
Patrick Eckler26-Aug-09 6:21
Patrick Eckler26-Aug-09 6:21 
AnswerRe: P2P connections between apps in different LAN environments Pin
yuemeng7-Apr-10 20:23
yuemeng7-Apr-10 20:23 
GeneralRe: P2P connections between apps in different LAN environments Pin
Patrick Eckler2-May-10 10:14
Patrick Eckler2-May-10 10:14 
QuestionOffice View Component does not set Differrent First Page Header Pin
dptalt26-Aug-09 6:12
dptalt26-Aug-09 6:12 
QuestionSerialize a collection of objects Pin
godfetish26-Aug-09 5:58
godfetish26-Aug-09 5:58 
AnswerRe: Serialize a collection of objects Pin
Henry Minute26-Aug-09 6:04
Henry Minute26-Aug-09 6:04 
GeneralRe: Serialize a collection of objects Pin
godfetish26-Aug-09 6:06
godfetish26-Aug-09 6:06 
GeneralRe: Serialize a collection of objects Pin
Henry Minute26-Aug-09 6:25
Henry Minute26-Aug-09 6:25 
Sorry about that. Blush | :O My eyes are tired, that's my excuse, and I'm sticking to it.
solution:
public static void Main(String[] args)
{
  //Create a new Employee object
  List<Employee> mp = new List<Employee>();
  Employee e = new Employee();
  e.EmpId = 10;
  e.EmpName = "Omkumar";
  mp.Add(e);
  e = new Employee();    //<==============================
  e.EmpId = 11;
  e.EmpName = "this";
  mp.Add(e);
  e = new Employee();    //<==============================
  e.EmpId = 12;
  e.EmpName = "is a";
  mp.Add(e);
  e = new Employee();    //<==============================
  e.EmpId = 13;
  e.EmpName = "test";
  mp.Add(e);

  mp.Add(e);


You do realise you will get two 13 employees, because of the last line.

Henry Minute

Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”

GeneralRe: Serialize a collection of objects Pin
godfetish26-Aug-09 7:20
godfetish26-Aug-09 7:20 
GeneralRe: Serialize a collection of objects Pin
Henry Minute26-Aug-09 7:43
Henry Minute26-Aug-09 7:43 
GeneralRe: Serialize a collection of objects Pin
godfetish26-Aug-09 8:23
godfetish26-Aug-09 8:23 
GeneralRe: Serialize a collection of objects Pin
Henry Minute26-Aug-09 8:30
Henry Minute26-Aug-09 8:30 

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.