Click here to Skip to main content
15,902,276 members
Home / Discussions / C#
   

C#

 
GeneralMessage Closed Pin
23-Jun-10 2:04
stancrm23-Jun-10 2:04 
GeneralRe: How to use a com dll without embedded typelibrary in it? Pin
kcynic23-Jun-10 19:49
kcynic23-Jun-10 19:49 
Questionclass relationships [modified] Pin
netJP12L22-Jun-10 19:41
netJP12L22-Jun-10 19:41 
AnswerRe: class relationships Pin
phil.o22-Jun-10 23:54
professionalphil.o22-Jun-10 23:54 
GeneralRe: class relationships Pin
netJP12L23-Jun-10 2:59
netJP12L23-Jun-10 2:59 
AnswerRe: class relationships Pin
DaveyM6923-Jun-10 3:39
professionalDaveyM6923-Jun-10 3:39 
GeneralRe: class relationships Pin
netJP12L23-Jun-10 5:11
netJP12L23-Jun-10 5:11 
GeneralRe: class relationships [modified] Pin
DaveyM6923-Jun-10 23:31
professionalDaveyM6923-Jun-10 23:31 
You should keep a list of the managers - something like this...
C#
public class Employee
{
    private string name;
    private List<Manager> managers;

    public string Name
    {
        get { return name; }
        set { name = value; }
    }

    public List<Manager> Managers
    {
        get
        {
            if(managers == null)
                return new List<Manager>();
            return managers;
        }
        set { managers = value; }
    }
}

Dave

If this helped, please vote & accept answer!


Binging is like googling, it just feels dirtier. (Pete O'Hanlon)

BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)

modified on Thursday, June 24, 2010 6:04 AM

AnswerRe: class relationships Pin
yu-jian27-Jun-10 9:41
yu-jian27-Jun-10 9:41 
QuestionFacing Problem in "Heaton Research" for crawling data in C# for "SQLWorkloadManager" Pin
deepakmcn22-Jun-10 19:33
deepakmcn22-Jun-10 19:33 
QuestionHow to prevent my .NET DLL to be decompiled? Pin
Isaac Gordon22-Jun-10 19:12
Isaac Gordon22-Jun-10 19:12 
AnswerRe: How to prevent my .NET DLL to be decompiled? Pin
Abhinav S22-Jun-10 20:38
Abhinav S22-Jun-10 20:38 
AnswerRe: How to prevent my .NET DLL to be decompiled? Pin
riced22-Jun-10 20:39
riced22-Jun-10 20:39 
AnswerRe: How to prevent my .NET DLL to be decompiled? Pin
bindasrakesh29-Nov-10 21:59
bindasrakesh29-Nov-10 21:59 
QuestionActiveDirectory (DirectoryEntry) Set/Get Attributes - Cached? Pin
Sir Dot Net22-Jun-10 11:27
Sir Dot Net22-Jun-10 11:27 
AnswerRe: ActiveDirectory (DirectoryEntry) Set/Get Attributes - Cached? Pin
Sir Dot Net22-Jun-10 11:30
Sir Dot Net22-Jun-10 11:30 
QuestionMessage Removed Pin
22-Jun-10 6:43
tarun_jeet22-Jun-10 6:43 
AnswerRe: Base Class Authetication ?? Pin
Ennis Ray Lynch, Jr.22-Jun-10 7:40
Ennis Ray Lynch, Jr.22-Jun-10 7:40 
GeneralMessage Removed Pin
22-Jun-10 7:48
tarun_jeet22-Jun-10 7:48 
GeneralRe: Base Class Authetication ?? Pin
Ennis Ray Lynch, Jr.22-Jun-10 8:04
Ennis Ray Lynch, Jr.22-Jun-10 8:04 
GeneralOh, and Pin
Ennis Ray Lynch, Jr.22-Jun-10 8:13
Ennis Ray Lynch, Jr.22-Jun-10 8:13 
GeneralRe: Base Class Authetication ?? Pin
Not Active22-Jun-10 10:08
mentorNot Active22-Jun-10 10:08 
AnswerRe: Base Class Authetication ?? Pin
Paladin200022-Jun-10 8:10
Paladin200022-Jun-10 8:10 
GeneralRe: Base Class Authetication ?? Pin
tarun_jeet22-Jun-10 8:29
tarun_jeet22-Jun-10 8:29 
GeneralRe: Base Class Authetication ?? Pin
Luc Pattyn22-Jun-10 10:52
sitebuilderLuc Pattyn22-Jun-10 10:52 

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.