Click here to Skip to main content
15,943,161 members
Home / Discussions / C#
   

C#

 
GeneralRe: display solid square program Pin
Keshav V. Kamat1-May-07 23:18
Keshav V. Kamat1-May-07 23:18 
GeneralRe: display solid square program Pin
Keshav V. Kamat1-May-07 23:26
Keshav V. Kamat1-May-07 23:26 
GeneralRe: display solid square program Pin
Dave Kreskowiak2-May-07 5:58
mveDave Kreskowiak2-May-07 5:58 
AnswerRe: display solid square program Pin
Christian Graus1-May-07 23:33
protectorChristian Graus1-May-07 23:33 
AnswerRe: display solid square program Pin
Pete O'Hanlon2-May-07 0:58
mvePete O'Hanlon2-May-07 0:58 
AnswerRe: display solid square program Pin
Muammar©3-May-07 22:36
Muammar©3-May-07 22:36 
QuestionHow to make an object dynamically Pin
Karel841-May-07 22:29
Karel841-May-07 22:29 
AnswerRe: How to make an object dynamically Pin
Pete O'Hanlon1-May-07 22:47
mvePete O'Hanlon1-May-07 22:47 
You're much better off using a collection for this. Why not look at a generic List ? Then you would get the following code (as an example):
private List<Node> _nodes = new List<Node>();
public void AddNode(Node node)
{
  if (node != null)
  {
    _nodes.Add(node);
  }
}

public void AddNode(Node[] nodes)
{
  if (nodes != null && nodes.Length > 0)
  {
    _nodes.AddRange(nodes);
  }
}




Deja View - the feeling that you've seen this post before.

AnswerRe: How to make an object dynamically Pin
LongRange.Shooter2-May-07 10:16
LongRange.Shooter2-May-07 10:16 
QuestionDatarow Array with foreach question Pin
Osrald1-May-07 21:58
Osrald1-May-07 21:58 
AnswerRe: Datarow Array with foreach question Pin
Venk2592-May-07 0:47
Venk2592-May-07 0:47 
QuestionHow to dynamically convert between Types? Pin
Subrahmanyam K1-May-07 21:39
Subrahmanyam K1-May-07 21:39 
AnswerRe: How to dynamically convert between Types? Pin
Christian Graus1-May-07 23:35
protectorChristian Graus1-May-07 23:35 
GeneralRe: How to dynamically convert between Types? Pin
Subrahmanyam K2-May-07 4:37
Subrahmanyam K2-May-07 4:37 
QuestionAuthenticating the Windows username and password Pin
Dotnetkanna1-May-07 20:56
Dotnetkanna1-May-07 20:56 
AnswerRe: Authenticating the Windows username and password Pin
stancrm1-May-07 22:32
stancrm1-May-07 22:32 
GeneralRe: Authenticating the Windows username and password Pin
Dotnetkanna1-May-07 23:59
Dotnetkanna1-May-07 23:59 
GeneralRe: Authenticating the Windows username and password Pin
stancrm2-May-07 0:17
stancrm2-May-07 0:17 
AnswerRe: Authenticating the Windows username and password Pin
Pete O'Hanlon2-May-07 0:56
mvePete O'Hanlon2-May-07 0:56 
QuestionEvents in web service.... Pin
Mandaar Kulkarni1-May-07 20:50
Mandaar Kulkarni1-May-07 20:50 
QuestionCross Thread Operation Pin
kraj991-May-07 19:53
kraj991-May-07 19:53 
AnswerRe: Cross Thread Operation Pin
Mandaar Kulkarni1-May-07 21:02
Mandaar Kulkarni1-May-07 21:02 
Questionhelp here... square program Pin
Missy Glory1-May-07 19:24
Missy Glory1-May-07 19:24 
AnswerRe: help here... square program Pin
stancrm1-May-07 19:40
stancrm1-May-07 19:40 
AnswerRe: help here... square program Pin
Michael1011-May-07 19:40
Michael1011-May-07 19:40 

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.