Click here to Skip to main content
15,936,903 members
Home / Discussions / C#
   

C#

 
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 
QuestionUsing Cascading DropDown Pin
LucBite26-Aug-09 5:33
LucBite26-Aug-09 5:33 
AnswerRe: Using Cascading DropDown Pin
Henry Minute26-Aug-09 6:05
Henry Minute26-Aug-09 6:05 
QuestionPrint the output of HTML Pin
Programm3r26-Aug-09 4:48
Programm3r26-Aug-09 4:48 
AnswerRe: Print the output of HTML Pin
N a v a n e e t h26-Aug-09 5:00
N a v a n e e t h26-Aug-09 5:00 
GeneralRe: Print the output of HTML Pin
Programm3r26-Aug-09 20:33
Programm3r26-Aug-09 20:33 
GeneralRe: Print the output of HTML Pin
N a v a n e e t h27-Aug-09 2:20
N a v a n e e t h27-Aug-09 2:20 
Questionchange Column type of a binded datagridview Pin
baranils26-Aug-09 4:40
baranils26-Aug-09 4:40 
Question[Solved] How to handle a null enum retrieved from web service [modified] Pin
Brian Triplett26-Aug-09 2:56
Brian Triplett26-Aug-09 2:56 
AnswerRe: How to handle a null enum retrieved from web service Pin
N a v a n e e t h26-Aug-09 5:04
N a v a n e e t h26-Aug-09 5:04 
GeneralRe: How to handle a null enum retrieved from web service Pin
Brian Triplett26-Aug-09 5:08
Brian Triplett26-Aug-09 5:08 
QuestionSuggestions on how to model a simple validation program Pin
neualex26-Aug-09 2:53
neualex26-Aug-09 2:53 
AnswerRe: Suggestions on how to model a simple validation program Pin
Super Lloyd26-Aug-09 3:12
Super Lloyd26-Aug-09 3:12 
GeneralRe: Suggestions on how to model a simple validation program Pin
neualex26-Aug-09 3:48
neualex26-Aug-09 3:48 

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.