Click here to Skip to main content
16,008,183 members
Home / Discussions / C#
   

C#

 
GeneralRe: Is there a way (hopefuly an easy one) to access the video card buffer/memory? Pin
leppie10-Oct-08 6:40
leppie10-Oct-08 6:40 
AnswerRe: Is there a way (hopefuly an easy one) to access the video card buffer/memory? Pin
Simon P Stevens10-Oct-08 3:04
Simon P Stevens10-Oct-08 3:04 
GeneralRe: Is there a way (hopefuly an easy one) to access the video card buffer/memory? Pin
xax10-Oct-08 5:44
xax10-Oct-08 5:44 
GeneralRe: Is there a way (hopefuly an easy one) to access the video card buffer/memory? Pin
Simon P Stevens10-Oct-08 5:53
Simon P Stevens10-Oct-08 5:53 
GeneralRe: Is there a way (hopefuly an easy one) to access the video card buffer/memory? Pin
leppie10-Oct-08 6:41
leppie10-Oct-08 6:41 
GeneralRe: Is there a way (hopefuly an easy one) to access the video card buffer/memory? Pin
xax11-Oct-08 3:05
xax11-Oct-08 3:05 
AnswerRe: Is there a way (hopefuly an easy one) to access the video card buffer/memory? Pin
Giorgi Dalakishvili10-Oct-08 3:07
mentorGiorgi Dalakishvili10-Oct-08 3:07 
QuestionImplementing an interface question Pin
Harvey Saayman10-Oct-08 2:16
Harvey Saayman10-Oct-08 2:16 
Hey guys

I'm just wrote a simple struct to contain an int and two boolean values. Its is as follows..

struct NodeModuleLevelStruct 
{
    public NodeModuleLevelStruct(int ModuleID, bool IsActive, bool IsAdvanced)
    {
        moduleID = ModuleID;
        moduleActive = IsActive;
        level = IsAdvanced;
    }

    private bool moduleActive;
    public bool IsActive
    {
        get { return moduleActive; }
        set { moduleActive = value; }
    }

    private bool level;
    public bool IsAdvanced
    {
        get { return level; }
        set { level = value; }
    }

    private int moduleID;
    public int ModuleID
    {
        get { return moduleID; }
        set { moduleID = value; }
    }
}


Now i need to query a NodeModuleLevelStruct[] using Linq so i have to inherit IEnumerable right?

so ive got

struct NodeModuleLevelStruct : IEnumerable<int>


...int cause i want to check if the given moduleID exists within that array

now the compiler is moaning that i havnt implemented System.Collections.Generic.IEnumerable<int>.GetEnumerator() or System.Collections.IEnumerable.GetEnumerator()


1) Am I on the right track here?
2) How do i implement those interfaces in my struct?

Thanks

Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL

you.suck = (you.Passion != Programming & you.Occupation == jobTitles.Programmer)
1000100 1101111 1100101 1110011 100000 1110100 1101000 1101001 1110011 100000 1101101 1100101 1100001 1101110 100000 1101001 1101101 100000 1100001 100000 1100111 1100101 1100101 1101011 111111

AnswerRe: Implementing an interface question Pin
leppie10-Oct-08 2:26
leppie10-Oct-08 2:26 
GeneralRe: Implementing an interface question Pin
Harvey Saayman10-Oct-08 2:34
Harvey Saayman10-Oct-08 2:34 
GeneralRe: Implementing an interface question Pin
leppie10-Oct-08 2:41
leppie10-Oct-08 2:41 
GeneralRe: Implementing an interface question Pin
Harvey Saayman10-Oct-08 2:44
Harvey Saayman10-Oct-08 2:44 
GeneralRe: Implementing an interface question Pin
DaveyM6910-Oct-08 3:01
professionalDaveyM6910-Oct-08 3:01 
GeneralRe: Implementing an interface question Pin
leppie10-Oct-08 3:51
leppie10-Oct-08 3:51 
GeneralRe: Implementing an interface question Pin
DaveyM6910-Oct-08 4:28
professionalDaveyM6910-Oct-08 4:28 
GeneralRe: Implementing an interface question Pin
Guffa10-Oct-08 6:26
Guffa10-Oct-08 6:26 
GeneralRe: Implementing an interface question Pin
DaveyM6910-Oct-08 8:05
professionalDaveyM6910-Oct-08 8:05 
GeneralRe: Implementing an interface question Pin
Guffa10-Oct-08 12:08
Guffa10-Oct-08 12:08 
GeneralRe: Implementing an interface question Pin
DaveyM6910-Oct-08 13:00
professionalDaveyM6910-Oct-08 13:00 
Questiondata formating Pin
muharrem10-Oct-08 1:40
muharrem10-Oct-08 1:40 
AnswerRe: data formating Pin
DaveyM6910-Oct-08 1:49
professionalDaveyM6910-Oct-08 1:49 
QuestionDataSource Pin
reza assar10-Oct-08 1:34
reza assar10-Oct-08 1:34 
AnswerRe: DataSource Pin
SeMartens10-Oct-08 1:44
SeMartens10-Oct-08 1:44 
AnswerRe: DataSource Pin
nelsonpaixao10-Oct-08 12:54
nelsonpaixao10-Oct-08 12:54 
Questioncreat a shortcut Pin
reza assar10-Oct-08 1:31
reza assar10-Oct-08 1:31 

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.