Click here to Skip to main content
       

C#

 
AnswerRe: Why is my control added three times? PinmemberAlan N7-Oct-12 8:34 
GeneralRe: Why is my control added three times? PinmentorDaveyM697-Oct-12 9:02 
GeneralRe: Why is my control added three times? PinmemberGrooverFromHolland7-Oct-12 10:23 
AnswerRe: Why is my control added three times? PinmemberV.7-Oct-12 23:41 
QuestionHow FingerPrint Device uses zkemkeeper.dll to get ID of each user print it's finger in Device Pinmemberosama_hagrass6-Oct-12 23:13 
AnswerRe: How FingerPrint Device uses zkemkeeper.dll to get ID of each user print it's finger in Device PinmemberEddy Vluggen7-Oct-12 1:14 
QuestionC# string array Pinmembersc steinhayse6-Oct-12 15:11 
AnswerRe: C# string array PinmvpDave Kreskowiak6-Oct-12 20:26 
Based on what you've posted so far, there is no exception possible. But, since we can't see the code that declared these types, the details collection, how it's populated, ..., we really couldn't tell you for sure.
 
But, if the Select returns no ID's, the array will come back empty and the foreach iterating over it won't do anything.
 
You don't have to change this code at all.
 
Next time, you might want to try testing the code with test data specifically designed to try and break it.

AnswerRe: C# string array PinmemberEddy Vluggen7-Oct-12 1:13 
AnswerRe: C# string array Pingroupmontevina 28-Oct-12 1:30 
GeneralRe: C# string array PinmemberBobJanova9-Oct-12 0:09 
AnswerRe: C# string array PinmemberBobJanova9-Oct-12 0:10 
Questionwindows service to check file directory path Pinmemberrachel_m6-Oct-12 9:46 
AnswerRe: windows service to check file directory path PinmemberRichard Andrew x646-Oct-12 9:56 
GeneralRe: windows service to check file directory path Pinmemberrachel_m6-Oct-12 10:48 
AnswerRe: windows service to check file directory path PinmemberEddy Vluggen6-Oct-12 11:28 
QuestionHTML Body mail with link button [modified] PinmemberMurugavel Sadagopan6-Oct-12 9:21 
AnswerRe: HTML Body mail with link button Pinmembern.podbielski8-Oct-12 23:08 
QuestionC# checking for spaces Pinmemberrachel_m6-Oct-12 8:44 
AnswerRe: C# checking for spaces PinmvpDave Kreskowiak6-Oct-12 10:06 
AnswerRe: C# checking for spaces PinmemberRichard Andrew x646-Oct-12 10:14 
AnswerRe: C# checking for spaces PinmentorDaveyM696-Oct-12 11:42 
QuestionsqlQuery PinmemberMember 94545636-Oct-12 1:14 
AnswerRe: sqlQuery PinmemberProgramFOX6-Oct-12 2:24 
AnswerRe: sqlQuery PinmvpOriginalGriff6-Oct-12 4:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web03 | 2.8.140421.2 | Last Updated 23 Apr 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid