Click here to Skip to main content
15,899,314 members
Home / Discussions / C#
   

C#

 
QuestionHelp Needed in C# Chess Game development Pin
usmanali12314-Jan-06 10:40
usmanali12314-Jan-06 10:40 
AnswerRe: Help Needed in C# Chess Game development Pin
Christian Graus14-Jan-06 12:34
protectorChristian Graus14-Jan-06 12:34 
AnswerRe: Help Needed in C# Chess Game development Pin
Robert Rohde14-Jan-06 21:36
Robert Rohde14-Jan-06 21:36 
QuestionIEnumerator Pin
Duif14-Jan-06 10:17
Duif14-Jan-06 10:17 
GeneralRe: IEnumerator Pin
Guffa14-Jan-06 11:23
Guffa14-Jan-06 11:23 
GeneralRe: IEnumerator Pin
Duif14-Jan-06 11:38
Duif14-Jan-06 11:38 
GeneralRe: IEnumerator Pin
Judah Gabriel Himango14-Jan-06 12:19
sponsorJudah Gabriel Himango14-Jan-06 12:19 
GeneralRe: IEnumerator Pin
Duif15-Jan-06 3:57
Duif15-Jan-06 3:57 
Hi, sorry about my poor english, here is the code:

private CKunde FindKunde(int ID)
{
bool bStopIteration = false;
CKunde MinKunde = null;

IEnumerator<CKunde> MinEnumerator = arrKunder.GetEnumerator();
while (MinEnumerator.MoveNext() && bStopIteration == false)
{
MinKunde = (CKunde)MinEnumerator.Current;
if (MinKunde.ID == ID)
bStopIteration = true;
}
if (bStopIteration == true)
{
return MinKunde;
}
else
{
throw new CKartoteksException("Kunde ej fundet");
}
}

....and here is the error-message:

Cannot implicitly convert type 'System.Collections.IEnumerator' to 'System.Collections.Generic.IEnumerator<Kundekartotek.CKunde>'. An explicit conversion exists (are you missing a cast?)
GeneralRe: IEnumerator Pin
Duif15-Jan-06 4:08
Duif15-Jan-06 4:08 
AnswerRe: IEnumerator Pin
[Marc]14-Jan-06 12:07
[Marc]14-Jan-06 12:07 
QuestionListView columns not displayed Pin
Ravi Bhavnani14-Jan-06 10:14
professionalRavi Bhavnani14-Jan-06 10:14 
AnswerRe: ListView columns not displayed Pin
Joshua Quick14-Jan-06 12:46
Joshua Quick14-Jan-06 12:46 
GeneralRe: ListView columns not displayed Pin
Ravi Bhavnani14-Jan-06 13:24
professionalRavi Bhavnani14-Jan-06 13:24 
QuestionNeed help with a Windows Service Pin
Nathan R14-Jan-06 9:13
Nathan R14-Jan-06 9:13 
AnswerRe: Need help with a Windows Service Pin
Nathan R16-Jan-06 9:48
Nathan R16-Jan-06 9:48 
GeneralRe: Need help with a Windows Service Pin
BlackDice2-Feb-06 11:33
BlackDice2-Feb-06 11:33 
QuestionWrite to a text file Pin
aPerfectCircle14-Jan-06 8:43
aPerfectCircle14-Jan-06 8:43 
AnswerRe: Write to a text file Pin
User 665814-Jan-06 8:59
User 665814-Jan-06 8:59 
QuestionRemoting with localizable resources Pin
machocr14-Jan-06 8:07
machocr14-Jan-06 8:07 
QuestionSystem.Security.SecurityException Pin
OMalleyW14-Jan-06 5:23
OMalleyW14-Jan-06 5:23 
QuestionRe: System.Security.SecurityException Pin
shopi3014-Jan-06 12:31
shopi3014-Jan-06 12:31 
AnswerRe: System.Security.SecurityException Pin
OMalleyW14-Jan-06 14:14
OMalleyW14-Jan-06 14:14 
QuestionHow insert controlls inide a listbox Pin
Sasuko14-Jan-06 4:23
Sasuko14-Jan-06 4:23 
AnswerRe: How insert controlls inide a listbox Pin
rabih_kai14-Jan-06 5:29
rabih_kai14-Jan-06 5:29 
Questionweb deployment set up project in .net 2005 Pin
cppdotnet14-Jan-06 1:23
cppdotnet14-Jan-06 1:23 

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.