Click here to Skip to main content
15,888,579 members
Home / Discussions / C#
   

C#

 
AnswerRe: Capturing windows messages Pin
Pete O'Hanlon13-Jan-13 23:29
mvePete O'Hanlon13-Jan-13 23:29 
QuestionSqlConnection vs IDbConnection Pin
levanduyet_vn13-Jan-13 15:40
levanduyet_vn13-Jan-13 15:40 
AnswerRe: SqlConnection vs IDbConnection Pin
PIEBALDconsult13-Jan-13 15:56
mvePIEBALDconsult13-Jan-13 15:56 
AnswerRe: SqlConnection vs IDbConnection Pin
Simon_Whale14-Jan-13 0:01
Simon_Whale14-Jan-13 0:01 
QuestionLINQ with List Pin
Member 873185913-Jan-13 9:48
Member 873185913-Jan-13 9:48 
AnswerRe: LINQ with List Pin
J4amieC13-Jan-13 21:47
J4amieC13-Jan-13 21:47 
AnswerRe: LINQ with List Pin
Simon_Whale14-Jan-13 1:17
Simon_Whale14-Jan-13 1:17 
GeneralRe: LINQ with List Pin
Member 875312115-Jan-13 6:35
Member 875312115-Jan-13 6:35 
Hi J4amieC and Simon_Whale,

Sorry I did not respond sooner. I started to look other directions and was paying less attention to this thread.

For the code supplied, I am getting the compiler error:
"The name 'b' does not exist in the current context"
If I could get rid of the error, I am hoping that the code would do two sorts:
A primary sort based on "Position" and a secondary sort on "Value". I would end up with the list grouped on "Position" and within each "Position" groupings they would be sorted based on "Value". If the following code snippet is added for a 3rd item:
C#
PositionValues item3 = new PositionValues();
item3.Position = 1;
item3.Value = 22;
list.Add(item3);
the resulting list (I am hoping) would be ordered as follows:
resultList[0] {1, 22}
resultList[1] {1, 33}
resultList[2] {2, 44}
where the first entry in the parenthesis is the "Position" and the second is the "Value".

I had looked previously at the 101 LINQ Samples but did not see something readily that was close enough to this (but probably just missed it since new to this - good suggestion and I plan on using as reference).

Thanks again,

Alan
AnswerRe: LINQ with List Pin
Member 873185921-Jan-13 6:36
Member 873185921-Jan-13 6:36 
Questionhow i get data from datatable Pin
a1_shay13-Jan-13 6:58
a1_shay13-Jan-13 6:58 
AnswerRe: how i get data from datatable Pin
PIEBALDconsult13-Jan-13 13:38
mvePIEBALDconsult13-Jan-13 13:38 
GeneralRe: how i get data from datatable Pin
a1_shay13-Jan-13 20:29
a1_shay13-Jan-13 20:29 
GeneralRe: how i get data from datatable Pin
Mycroft Holmes13-Jan-13 21:06
professionalMycroft Holmes13-Jan-13 21:06 
GeneralRe: how i get data from datatable Pin
a1_shay13-Jan-13 21:08
a1_shay13-Jan-13 21:08 
GeneralRe: how i get data from datatable Pin
Mycroft Holmes13-Jan-13 23:58
professionalMycroft Holmes13-Jan-13 23:58 
GeneralRe: how i get data from datatable Pin
a1_shay14-Jan-13 0:53
a1_shay14-Jan-13 0:53 
GeneralRe: how i get data from datatable Pin
PIEBALDconsult14-Jan-13 3:05
mvePIEBALDconsult14-Jan-13 3:05 
GeneralRe: how i get data from datatable Pin
a1_shay14-Jan-13 3:08
a1_shay14-Jan-13 3:08 
GeneralRe: how i get data from datatable Pin
PIEBALDconsult14-Jan-13 3:36
mvePIEBALDconsult14-Jan-13 3:36 
GeneralRe: how i get data from datatable Pin
a1_shay14-Jan-13 12:34
a1_shay14-Jan-13 12:34 
Questionis it possible to work with Word files using Binary Reader and writer? Pin
hurrem13-Jan-13 5:41
hurrem13-Jan-13 5:41 
AnswerRe: is it possible to work with Word files using Binary Reader and writer? Pin
Garth J Lancaster13-Jan-13 10:19
professionalGarth J Lancaster13-Jan-13 10:19 
QuestionDeleting registry values Pin
Erol230913-Jan-13 4:51
Erol230913-Jan-13 4:51 
AnswerRe: Deleting registry values Pin
Thomas Daniels13-Jan-13 6:06
mentorThomas Daniels13-Jan-13 6:06 
GeneralRe: Deleting registry values Pin
Erol230913-Jan-13 8:44
Erol230913-Jan-13 8:44 

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.