Click here to Skip to main content
   

C#

 
GeneralRe: Reading jpeg image from a binary data PinmvpOriginalGriff14-Jan-13 22:03 
QuestionCapturing windows messages PinmemberDainer Mesa Lima13-Jan-13 20:45 
AnswerRe: Capturing windows messages PinmvpSandeep Mewara13-Jan-13 21:23 
AnswerRe: Capturing windows messages PinprotectorPete O'Hanlon14-Jan-13 0:29 
QuestionSqlConnection vs IDbConnection Pinmemberlevanduyet_vn13-Jan-13 16:40 
AnswerRe: SqlConnection vs IDbConnection PinmemberPIEBALDconsult13-Jan-13 16:56 
AnswerRe: SqlConnection vs IDbConnection PinmemberSimon_Whale14-Jan-13 1:01 
QuestionLINQ with List PinmemberMember 873185913-Jan-13 10:48 
Hi,
Totally new to LINQ and wondering how I can get the following sandbox code to work. Ideas?
           List<PositionValues> list = new List<PositionValues>();
            PositionValues item1 = new PositionValues();
            item1.Position = 2;
            item1.Value = 44;
            list.Add(item1);
 
            PositionValues item2 = new PositionValues();
            item2.Position = 1;
            item2.Value = 33;
            list.Add(item2);
 
            var resultList = from b in list group b by b.Position into g orderby b.Value select b;
 
It relies on:
public struct PositionValues
{
    /// <summary>
    /// The position.
    /// </summary>
    public int Position;
 
    /// <summary>
    /// The position.
    /// </summary>
    public double Value;
}
 
Thanks for looking,
 
Alan
AnswerRe: LINQ with List PinmemberJ4amieC13-Jan-13 22:47 
AnswerRe: LINQ with List PinmemberSimon_Whale14-Jan-13 2:17 
GeneralRe: LINQ with List PinmemberMember 875312115-Jan-13 7:35 
AnswerRe: LINQ with List PinmemberMember 873185921-Jan-13 7:36 
Questionhow i get data from datatable Pinmembera1_shay13-Jan-13 7:58 
AnswerRe: how i get data from datatable [modified] PinmemberPIEBALDconsult13-Jan-13 14:38 
GeneralRe: how i get data from datatable Pinmembera1_shay13-Jan-13 21:29 
GeneralRe: how i get data from datatable PinmemberMycroft Holmes13-Jan-13 22:06 
GeneralRe: how i get data from datatable Pinmembera1_shay13-Jan-13 22:08 
GeneralRe: how i get data from datatable PinmemberMycroft Holmes14-Jan-13 0:58 
GeneralRe: how i get data from datatable Pinmembera1_shay14-Jan-13 1:53 
GeneralRe: how i get data from datatable [modified] PinmemberPIEBALDconsult14-Jan-13 4:05 
GeneralRe: how i get data from datatable Pinmembera1_shay14-Jan-13 4:08 
GeneralRe: how i get data from datatable PinmemberPIEBALDconsult14-Jan-13 4:36 
GeneralRe: how i get data from datatable Pinmembera1_shay14-Jan-13 13:34 
Questionis it possible to work with Word files using Binary Reader and writer? Pinmemberasem052513-Jan-13 6:41 
AnswerRe: is it possible to work with Word files using Binary Reader and writer? PinmemberGarth J Lancaster13-Jan-13 11:19 

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
Web02 | 2.8.150129.1 | Last Updated 30 Jan 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid