Click here to Skip to main content
       

LINQ

 
Hint: For improved responsiveness ensure Javascript is enabled and choose 'Normal' from the Layout dropdown and hit 'Update'.
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
QuestionComma separeted text filemembermarca29212 Nov '12 - 19:59 
Hi,
 
I have a comma separated text file and I want to get all SerialNumber for a specific device. Example: I want to get the SerialNumber for all Device:A1 => 345 and 347
 
ID:432,Name:Jones,SerialNumber:345,Device:A1
ID:432,Name:Mark,SerialNumber:347,Device:A1
ID:432,Name:Ann,SerialNumber:346,Device:A2
 
I have now solved this problem with a combination of linq, foreach and regex. How can I do this in one linq expression?
 
Best regards
Olof
AnswerRe: Comma separeted text filemembersavbace10 Jan '13 - 22:44 

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


Advertise | Privacy | Mobile
Web04 | 2.6.130523.1 | Last Updated 3 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid