Click here to Skip to main content
11,485,965 members (72,419 online)
   

C#

 
AnswerRe: Adding a reference to a project Pin
Richard MacCutchan14-Jan-13 23:21
mvpRichard MacCutchan14-Jan-13 23:21 
QuestionHow can i save data from word table to SQL database C# Pin
Nkeshe14-Jan-13 3:16
memberNkeshe14-Jan-13 3:16 
AnswerRe: How can i save data from word table to SQL database C# Pin
Eddy Vluggen14-Jan-13 4:15
mvpEddy Vluggen14-Jan-13 4:15 
QuestionReading jpeg image from a binary data Pin
coolprasadhegde14-Jan-13 1:44
membercoolprasadhegde14-Jan-13 1:44 
AnswerRe: Reading jpeg image from a binary data Pin
OriginalGriff14-Jan-13 1:53
mvpOriginalGriff14-Jan-13 1:53 
GeneralRe: Reading jpeg image from a binary data Pin
coolprasadhegde14-Jan-13 21:38
membercoolprasadhegde14-Jan-13 21:38 
GeneralRe: Reading jpeg image from a binary data Pin
OriginalGriff14-Jan-13 22:03
mvpOriginalGriff14-Jan-13 22:03 
QuestionCapturing windows messages Pin
Dainer Mesa Lima13-Jan-13 20:45
memberDainer Mesa Lima13-Jan-13 20:45 
AnswerRe: Capturing windows messages Pin
Sandeep Mewara13-Jan-13 21:23
mvpSandeep Mewara13-Jan-13 21:23 
AnswerRe: Capturing windows messages Pin
Pete O'Hanlon14-Jan-13 0:29
protectorPete O'Hanlon14-Jan-13 0:29 
QuestionSqlConnection vs IDbConnection Pin
levanduyet_vn13-Jan-13 16:40
memberlevanduyet_vn13-Jan-13 16:40 
AnswerRe: SqlConnection vs IDbConnection Pin
PIEBALDconsult13-Jan-13 16:56
memberPIEBALDconsult13-Jan-13 16:56 
AnswerRe: SqlConnection vs IDbConnection Pin
Simon_Whale14-Jan-13 1:01
memberSimon_Whale14-Jan-13 1:01 
QuestionLINQ with List Pin
Member 873185913-Jan-13 10:48
memberMember 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 Pin
J4amieC13-Jan-13 22:47
memberJ4amieC13-Jan-13 22:47 
AnswerRe: LINQ with List Pin
Simon_Whale14-Jan-13 2:17
memberSimon_Whale14-Jan-13 2:17 
GeneralRe: LINQ with List Pin
Member 875312115-Jan-13 7:35
memberMember 875312115-Jan-13 7:35 
AnswerRe: LINQ with List Pin
Member 873185921-Jan-13 7:36
memberMember 873185921-Jan-13 7:36 
Questionhow i get data from datatable Pin
a1_shay13-Jan-13 7:58
membera1_shay13-Jan-13 7:58 
AnswerRe: how i get data from datatable [modified] Pin
PIEBALDconsult13-Jan-13 14:38
memberPIEBALDconsult13-Jan-13 14:38 
GeneralRe: how i get data from datatable Pin
a1_shay13-Jan-13 21:29
membera1_shay13-Jan-13 21:29 
GeneralRe: how i get data from datatable Pin
Mycroft Holmes13-Jan-13 22:06
memberMycroft Holmes13-Jan-13 22:06 
GeneralRe: how i get data from datatable Pin
a1_shay13-Jan-13 22:08
membera1_shay13-Jan-13 22:08 
GeneralRe: how i get data from datatable Pin
Mycroft Holmes14-Jan-13 0:58
memberMycroft Holmes14-Jan-13 0:58 
GeneralRe: how i get data from datatable Pin
a1_shay14-Jan-13 1:53
membera1_shay14-Jan-13 1:53 
GeneralRe: how i get data from datatable [modified] Pin
PIEBALDconsult14-Jan-13 4:05
memberPIEBALDconsult14-Jan-13 4:05 
GeneralRe: how i get data from datatable Pin
a1_shay14-Jan-13 4:08
membera1_shay14-Jan-13 4:08 
GeneralRe: how i get data from datatable Pin
PIEBALDconsult14-Jan-13 4:36
memberPIEBALDconsult14-Jan-13 4:36 
GeneralRe: how i get data from datatable Pin
a1_shay14-Jan-13 13:34
membera1_shay14-Jan-13 13:34 
Questionis it possible to work with Word files using Binary Reader and writer? Pin
asem052513-Jan-13 6:41
memberasem052513-Jan-13 6:41 
AnswerRe: is it possible to work with Word files using Binary Reader and writer? Pin
Garth J Lancaster13-Jan-13 11:19
memberGarth J Lancaster13-Jan-13 11:19 
QuestionDeleting registry values Pin
Erol230913-Jan-13 5:51
memberErol230913-Jan-13 5:51 
AnswerRe: Deleting registry values [modified] Pin
ProgramFOX13-Jan-13 7:06
member ProgramFOX13-Jan-13 7:06 
GeneralRe: Deleting registry values Pin
Erol230913-Jan-13 9:44
memberErol230913-Jan-13 9:44 
GeneralRe: Deleting registry values Pin
ProgramFOX14-Jan-13 6:57
member ProgramFOX14-Jan-13 6:57 
AnswerRe: Deleting registry values Pin
Pete O'Hanlon13-Jan-13 9:56
protectorPete O'Hanlon13-Jan-13 9:56 
GeneralRe: Deleting registry values Pin
Erol230913-Jan-13 23:17
memberErol230913-Jan-13 23:17 
GeneralRe: Deleting registry values Pin
jibesh13-Jan-13 23:32
memberjibesh13-Jan-13 23:32 
GeneralRe: Deleting registry values Pin
Pete O'Hanlon14-Jan-13 0:40
protectorPete O'Hanlon14-Jan-13 0:40 
QuestionIndex was outside the bounds of the array. Pin
Erol230913-Jan-13 5:11
memberErol230913-Jan-13 5:11 
AnswerRe: Index was outside the bounds of the array. Pin
OriginalGriff13-Jan-13 5:15
mvpOriginalGriff13-Jan-13 5:15 
GeneralRe: Index was outside the bounds of the array. Pin
Erol230913-Jan-13 5:17
memberErol230913-Jan-13 5:17 
GeneralRe: Index was outside the bounds of the array. Pin
OriginalGriff13-Jan-13 5:21
mvpOriginalGriff13-Jan-13 5:21 
AnswerRe: Index was outside the bounds of the array. Pin
PIEBALDconsult13-Jan-13 5:41
memberPIEBALDconsult13-Jan-13 5:41 
QuestionObject reference not set to an instance of an object Pin
Erol230912-Jan-13 20:25
memberErol230912-Jan-13 20:25 
AnswerRe: Object reference not set to an instance of an object Pin
jibesh12-Jan-13 20:41
memberjibesh12-Jan-13 20:41 
QuestionSaving selected option into database Pin
Oyebisi Jemil12-Jan-13 12:31
memberOyebisi Jemil12-Jan-13 12:31 
AnswerRe: Saving selected option into database Pin
Pete O'Hanlon12-Jan-13 12:45
protectorPete O'Hanlon12-Jan-13 12:45 
AnswerRe: Saving selected option into database Pin
Dave Kreskowiak12-Jan-13 13:48
mvpDave Kreskowiak12-Jan-13 13:48 
GeneralRe: Saving selected option into database Pin
Brisingr Aerowing12-Jan-13 14:49
memberBrisingr Aerowing12-Jan-13 14: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
Web01 | 2.8.150520.1 | Last Updated 26 May 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid