Click here to Skip to main content
14,328,676 members

.NET Framework

 
AnswerRe: [VB.NET 2008] Compact Framework: how to start a single instance of an application Pin
Eddy Vluggen25-Feb-13 8:10
mveEddy Vluggen25-Feb-13 8:10 
GeneralRe: [VB.NET 2008] Compact Framework: how to start a single instance of an application Pin
steve_949661325-Feb-13 23:44
professionalsteve_949661325-Feb-13 23:44 
GeneralRe: [VB.NET 2008] Compact Framework: how to start a single instance of an application Pin
Eddy Vluggen26-Feb-13 0:33
mveEddy Vluggen26-Feb-13 0:33 
QuestionEvent Handling between Threads Pin
AeroClassics19-Feb-13 11:37
professionalAeroClassics19-Feb-13 11:37 
AnswerRe: Event Handling between Threads Pin
Gerry Schmitz19-Feb-13 19:25
mveGerry Schmitz19-Feb-13 19:25 
GeneralRe: Event Handling between Threads Pin
AeroClassics20-Feb-13 4:45
professionalAeroClassics20-Feb-13 4:45 
QuestionWays of implenting IEnumerable in VB Pin
Mike-MadBadger19-Feb-13 11:10
memberMike-MadBadger19-Feb-13 11:10 
AnswerRe: Ways of implenting IEnumerable in VB Pin
MicroVirus13-Mar-13 11:56
memberMicroVirus13-Mar-13 11:56 
Dear Mike,

I realise this is a late answer, so maybe you've already figured this out. But maybe it's still worth something, so here goes:
I think the short answer is that Yield is absolutely genius. The 'classic' way as you put it actually is the same implementation over and over again, where only the return value varies. What yield does for you is that it allows you to construct an IEnumerable directly from a function (using Yield statements), such that every time MoveNext() is called, the function takes off where it left off until the next Yield statement.
So, yes, you can just use yield whenever you want Smile | :) I think the only possible issue with it is that it's probably slower than a proper custom ('classic') implementation, so if you have A LOT of elements AND you notice a performance bottleneck in enumeration THEN you might consider getting your hands dirty.

Best regards,

Richard
GeneralRe: Ways of implenting IEnumerable in VB Pin
Mike-MadBadger13-Mar-13 21:44
memberMike-MadBadger13-Mar-13 21:44 
Questionhow to manage exicution code Pin
nanhesab18-Feb-13 0:58
membernanhesab18-Feb-13 0:58 
AnswerRe: how to manage exicution code Pin
Eddy Vluggen18-Feb-13 1:01
mveEddy Vluggen18-Feb-13 1:01 
AnswerRe: how to manage exicution code Pin
Super Lloyd18-Feb-13 1:33
memberSuper Lloyd18-Feb-13 1:33 
AnswerRe: how to manage exicution code Pin
Sandeep Mewara18-Feb-13 3:13
mentorSandeep Mewara18-Feb-13 3:13 
Questionharvesting social images for bi concept image search Pin
krish888817-Feb-13 16:32
memberkrish888817-Feb-13 16:32 
AnswerRe: harvesting social images for bi concept image search Pin
N a v a n e e t h17-Feb-13 17:13
memberN a v a n e e t h17-Feb-13 17:13 
AnswerRe: harvesting social images for bi concept image search Pin
Sandeep Mewara17-Feb-13 18:24
mentorSandeep Mewara17-Feb-13 18:24 
AnswerRe: harvesting social images for bi concept image search Pin
Abhinav S19-Feb-13 0:08
memberAbhinav S19-Feb-13 0:08 
AnswerRe: harvesting social images for bi concept image search Pin
Dave Kreskowiak19-Feb-13 1:45
mveDave Kreskowiak19-Feb-13 1:45 
QuestionWhere to get Regasm and Gacutil? Pin
cjb11015-Feb-13 0:54
membercjb11015-Feb-13 0:54 
AnswerRe: Where to get Regasm and Gacutil? Pin
Richard Deeming15-Feb-13 1:01
mveRichard Deeming15-Feb-13 1:01 
GeneralRe: Where to get Regasm and Gacutil? Pin
cjb11015-Feb-13 2:55
membercjb11015-Feb-13 2:55 
AnswerRe: Where to get Regasm and Gacutil? Pin
Dave Kreskowiak15-Feb-13 2:12
mveDave Kreskowiak15-Feb-13 2:12 
GeneralRe: Where to get Regasm and Gacutil? Pin
cjb11015-Feb-13 2:48
membercjb11015-Feb-13 2:48 
QuestionWeb development using C++ Pin
AseelHadlaq14-Feb-13 23:04
memberAseelHadlaq14-Feb-13 23:04 
AnswerRe: Web development using C++ Pin
N a v a n e e t h14-Feb-13 23:47
memberN a v a n e e t h14-Feb-13 23:47 

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.