Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
GeneralW:Re: How create table in SQL Server using C# and data from Excel. Pin
Maciej Los16-Mar-14 0:14
mveMaciej Los16-Mar-14 0:14 
GeneralRe: How create table in SQL Server using C# and data from Excel. Pin
jschell17-Mar-14 8:34
jschell17-Mar-14 8:34 
GeneralRe: How create table in SQL Server using C# and data from Excel. Pin
OriginalGriff17-Mar-14 9:03
mveOriginalGriff17-Mar-14 9:03 
GeneralRe: How create table in SQL Server using C# and data from Excel. Pin
jschell18-Mar-14 8:07
jschell18-Mar-14 8:07 
GeneralRe: How create table in SQL Server using C# and data from Excel. Pin
OriginalGriff18-Mar-14 9:08
mveOriginalGriff18-Mar-14 9:08 
QuestionIEnumerable and disposal Pin
Rob Philpott14-Mar-14 0:31
Rob Philpott14-Mar-14 0:31 
AnswerRe: IEnumerable and disposal Pin
Richard Deeming14-Mar-14 2:06
mveRichard Deeming14-Mar-14 2:06 
GeneralRe: IEnumerable and disposal Pin
Rob Philpott14-Mar-14 2:27
Rob Philpott14-Mar-14 2:27 
Very nice answer Richard.

I had a feeling that IDisposable may be at work. Unfortunately I tend to think along the lines that an IEnumerable is merely something you iterate over rather than something that returns a disposable iterator (or enumerator if you prefer - I think the parlance is different for .NET than STL etc.)

So I guess what's happening now is the when the iterator gets disposed, it's essentially doing the same as a yield break to force its way out my own while loop. The implicitness of that bothers me slightly, because my condition of .Read() will always go to the end of the result set. And in fact the ability to break the loop is being delegated to outside.

I really should try all this out in the debugger. Smile | :)

So that's cleared that up and I've got one less thing to worry about now. Thanks!
Regards,
Rob Philpott.

GeneralRe: IEnumerable and disposal Pin
Simon_Whale14-Mar-14 2:30
Simon_Whale14-Mar-14 2:30 
GeneralRe: IEnumerable and disposal Pin
Simon_Whale14-Mar-14 2:29
Simon_Whale14-Mar-14 2:29 
AnswerRe: IEnumerable and disposal Pin
jschell14-Mar-14 11:57
jschell14-Mar-14 11:57 
QuestionSharepoint Gridview Pin
DipsMak13-Mar-14 23:21
professionalDipsMak13-Mar-14 23:21 
AnswerRe: Sharepoint Gridview Pin
Richard MacCutchan14-Mar-14 0:21
mveRichard MacCutchan14-Mar-14 0:21 
AnswerRe: Sharepoint Gridview Pin
DipsMak14-Mar-14 0:35
professionalDipsMak14-Mar-14 0:35 
GeneralRe: Sharepoint Gridview Pin
Richard MacCutchan14-Mar-14 1:35
mveRichard MacCutchan14-Mar-14 1:35 
Questionhow to have Pin
jojoba201113-Mar-14 19:14
jojoba201113-Mar-14 19:14 
AnswerRe: how to have Pin
BillWoodruff13-Mar-14 23:00
professionalBillWoodruff13-Mar-14 23:00 
AnswerRe: how to have Pin
Pete O'Hanlon13-Mar-14 23:11
mvePete O'Hanlon13-Mar-14 23:11 
QuestionRe: how to have Pin
jojoba201113-Mar-14 23:23
jojoba201113-Mar-14 23:23 
AnswerRe: how to have Pin
Eddy Vluggen13-Mar-14 23:30
professionalEddy Vluggen13-Mar-14 23:30 
AnswerRe: how to have Pin
Pete O'Hanlon13-Mar-14 23:57
mvePete O'Hanlon13-Mar-14 23:57 
AnswerRe: how to have Pin
Ravi Bhavnani14-Mar-14 6:41
professionalRavi Bhavnani14-Mar-14 6:41 
QuestionHelp Please Pin
Member 1045276713-Mar-14 10:38
Member 1045276713-Mar-14 10:38 
AnswerRe: Help Please Pin
Richard Andrew x6413-Mar-14 11:33
professionalRichard Andrew x6413-Mar-14 11:33 
GeneralRe: Help Please Pin
Member 1045276713-Mar-14 23:35
Member 1045276713-Mar-14 23:35 

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.