Click here to Skip to main content
15,891,372 members
Home / Discussions / C#
   

C#

 
QuestionHow long the database connection stays open Pin
netJP12L25-Mar-09 9:32
netJP12L25-Mar-09 9:32 
AnswerRe: How long the database connection stays open Pin
spiritboy25-Mar-09 9:43
spiritboy25-Mar-09 9:43 
GeneralRe: How long the database connection stays open Pin
netJP12L25-Mar-09 10:30
netJP12L25-Mar-09 10:30 
GeneralRe: How long the database connection stays open Pin
dano2k325-Mar-09 22:49
dano2k325-Mar-09 22:49 
QuestionTrouble with arrays and nested classes [modified] Pin
robertkjr3d25-Mar-09 9:06
robertkjr3d25-Mar-09 9:06 
AnswerRe: Trouble with arrays and nested classes Pin
dan!sh 25-Mar-09 9:24
professional dan!sh 25-Mar-09 9:24 
GeneralRe: Trouble with arrays and nested classes Pin
Xmen Real 25-Mar-09 19:38
professional Xmen Real 25-Mar-09 19:38 
AnswerRe: Trouble with arrays and nested classes Pin
DaveyM6925-Mar-09 9:32
professionalDaveyM6925-Mar-09 9:32 
Why not use a generic list?
public class Patient
{
    public Patient()
    {
        _Names = new List<Name>();
    }
    private List<Name> _Names;
    public Name[] Names
    {
        get { return _Names.ToArray(); }
    }
    public void AddName(Name name)
    {
        _Names.Add(name);
    }
    public void RemoveName(Name name)
    {
        _Names.Remove(name);
    }

    public class Name
    {
        // Your class stuff here
    }
}


Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)

QuestionCOM interface inheritance Pin
Ravadre25-Mar-09 8:48
Ravadre25-Mar-09 8:48 
Questionbutton in textbox Pin
behzadcp25-Mar-09 8:31
professionalbehzadcp25-Mar-09 8:31 
AnswerRe: button in textbox Pin
dan!sh 25-Mar-09 9:21
professional dan!sh 25-Mar-09 9:21 
GeneralRe: button in textbox Pin
behzadcp25-Mar-09 9:46
professionalbehzadcp25-Mar-09 9:46 
GeneralRe: button in textbox Pin
dan!sh 25-Mar-09 9:53
professional dan!sh 25-Mar-09 9:53 
GeneralRe: button in textbox - sort of OT Pin
DaveyM6925-Mar-09 10:21
professionalDaveyM6925-Mar-09 10:21 
GeneralRe: button in textbox - sort of OT Pin
ramz_g25-Mar-09 19:27
ramz_g25-Mar-09 19:27 
GeneralRe: button in textbox - sort of OT Pin
dan!sh 25-Mar-09 20:18
professional dan!sh 25-Mar-09 20:18 
AnswerRe: button in textbox Pin
Henry Minute25-Mar-09 11:04
Henry Minute25-Mar-09 11:04 
QuestionGraphical data representation Pin
hotthoughtguy25-Mar-09 8:23
hotthoughtguy25-Mar-09 8:23 
AnswerRe: Graphical data representation Pin
0x3c025-Mar-09 9:20
0x3c025-Mar-09 9:20 
QuestionMs WORD Bug Pin
Morad SAJID25-Mar-09 8:22
Morad SAJID25-Mar-09 8:22 
Questionsalam Pin
hotthoughtguy25-Mar-09 7:46
hotthoughtguy25-Mar-09 7:46 
AnswerRe: salam Pin
0x3c025-Mar-09 7:48
0x3c025-Mar-09 7:48 
GeneralRe: salam Pin
hotthoughtguy25-Mar-09 8:11
hotthoughtguy25-Mar-09 8:11 
GeneralRe: salam Pin
dan!sh 25-Mar-09 9:10
professional dan!sh 25-Mar-09 9:10 
GeneralRe: salam Pin
0x3c025-Mar-09 9:19
0x3c025-Mar-09 9:19 

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.