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

C#

 
QuestionGiving an object multiple enumerator types Pin
Rareed30-Jun-07 15:16
Rareed30-Jun-07 15:16 
AnswerRe: Giving an object multiple enumerator types Pin
Christian Graus30-Jun-07 15:27
protectorChristian Graus30-Jun-07 15:27 
GeneralRe: Giving an object multiple enumerator types Pin
Rareed30-Jun-07 15:32
Rareed30-Jun-07 15:32 
GeneralRe: Giving an object multiple enumerator types Pin
Christian Graus30-Jun-07 15:58
protectorChristian Graus30-Jun-07 15:58 
GeneralRe: Giving an object multiple enumerator types Pin
Rareed30-Jun-07 16:09
Rareed30-Jun-07 16:09 
GeneralRe: Giving an object multiple enumerator types Pin
Christian Graus30-Jun-07 16:26
protectorChristian Graus30-Jun-07 16:26 
GeneralRe: Giving an object multiple enumerator types Pin
Rareed30-Jun-07 16:32
Rareed30-Jun-07 16:32 
GeneralRe: Giving an object multiple enumerator types Pin
Robert Rohde1-Jul-07 2:56
Robert Rohde1-Jul-07 2:56 
Hi,

with the given error message I assume you have a class like this:
class SampleClass : IEnumerable<int>, IEnumerable<string> { ... }

If you want to iterate over the ints then do:
SampleClass mySampleInstance;
foreach (int i in (IEnumerable<int> )mySampleInstance) { ... }

or if you want to iterate over the strings:
foreach (string s in (IEnumerable<string> )mySampleInstance) { ... }


Robert



QuestionSave data into a .dat file Pin
atlasliu30-Jun-07 14:44
atlasliu30-Jun-07 14:44 
AnswerRe: Save data into a .dat file Pin
Luc Pattyn30-Jun-07 14:59
sitebuilderLuc Pattyn30-Jun-07 14:59 
QuestionImage Processing using C# Pin
marwa wael30-Jun-07 7:04
marwa wael30-Jun-07 7:04 
AnswerRe: Image Processing using C# Pin
zeeShan anSari30-Jun-07 9:01
zeeShan anSari30-Jun-07 9:01 
QuestionImageprocessing:Draw and Save the drawing Pin
zeeShan anSari30-Jun-07 6:34
zeeShan anSari30-Jun-07 6:34 
AnswerRe: Imageprocessing:Draw and Save the drawing Pin
Guffa30-Jun-07 6:49
Guffa30-Jun-07 6:49 
AnswerRe: Imageprocessing:Draw and Save the drawing Pin
zeeShan anSari30-Jun-07 8:54
zeeShan anSari30-Jun-07 8:54 
GeneralRe: Imageprocessing:Draw and Save the drawing Pin
Christian Graus30-Jun-07 10:39
protectorChristian Graus30-Jun-07 10:39 
AnswerRe: Imageprocessing:Draw and Save the drawing Pin
Guffa30-Jun-07 11:34
Guffa30-Jun-07 11:34 
AnswerRe: Imageprocessing:Draw and Save the drawing Pin
Christian Graus30-Jun-07 10:30
protectorChristian Graus30-Jun-07 10:30 
Questionhow to access database Pin
nidesh30-Jun-07 5:07
nidesh30-Jun-07 5:07 
AnswerRe: how to access database Pin
WillemM30-Jun-07 6:58
WillemM30-Jun-07 6:58 
AnswerRe: how to access database Pin
Paul Conrad30-Jun-07 7:10
professionalPaul Conrad30-Jun-07 7:10 
GeneralRe: how to access database Pin
Expert Coming30-Jun-07 11:06
Expert Coming30-Jun-07 11:06 
GeneralRe: how to access database Pin
Paul Conrad30-Jun-07 14:02
professionalPaul Conrad30-Jun-07 14:02 
QuestionHelp with TypeLoadException (marshaling unmanaged code) Pin
TomWolfstein30-Jun-07 4:50
TomWolfstein30-Jun-07 4:50 
AnswerRe: Help with TypeLoadException (marshaling unmanaged code) Pin
Luc Pattyn30-Jun-07 5:10
sitebuilderLuc Pattyn30-Jun-07 5:10 

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.