Click here to Skip to main content
15,900,461 members
Home / Discussions / C#
   

C#

 
SuggestionRe: how to change each pixel color Pin
Richard Deeming27-Sep-17 2:56
mveRichard Deeming27-Sep-17 2:56 
AnswerRe: how to change each pixel color Pin
Pete O'Hanlon27-Sep-17 3:13
mvePete O'Hanlon27-Sep-17 3:13 
Questiontest Pin
Marinel7727-Sep-17 0:29
Marinel7727-Sep-17 0:29 
AnswerRe: Need help with school projects Pin
Pete O'Hanlon27-Sep-17 0:33
mvePete O'Hanlon27-Sep-17 0:33 
QuestionRe: Need help with school projects Pin
Eddy Vluggen27-Sep-17 0:46
professionalEddy Vluggen27-Sep-17 0:46 
QuestionProblem debugging c# assembly (class library) Pin
PankajB26-Sep-17 18:24
PankajB26-Sep-17 18:24 
AnswerRe: Problem debugging c# assembly (class library) Pin
Eddy Vluggen26-Sep-17 23:13
professionalEddy Vluggen26-Sep-17 23:13 
QuestionC# .Select Method Pin
Bootzilla3326-Sep-17 10:18
Bootzilla3326-Sep-17 10:18 
I want to do a .Select for the rest of the fields: EventStatus, EventReason, and EventDateTime like I'm doing for the TrackingEvent and am not sure how to do that. Richard Deeming was helpful in get me started with this but need help with the rest.

TrackingEventHistory is the root for XML element I'm trying to output. The rest (EventStatus, EventReason, EventDateTime) are "children" within that root. There can be multiple TrackingEventHistory's so I'm trying to create a loop for the root and it's children. I'm not sure if .Select is the best way.

C#
new XElement("TrackingEventHistory",
                    prc.History.Cast<Saia.Data.General.Shipment.HistoryItem>().Select(item => new XElement("TrackingEventDetail",
                    new XElement("EventStatus", EventCode.Delivered.ToXml()),
                    new XElement("EventReason", prc.History),
                    new XElement("EventDateTime", prc.History))


modified 26-Sep-17 17:31pm.

AnswerRe: C# .Select Method Pin
Pete O'Hanlon26-Sep-17 21:05
mvePete O'Hanlon26-Sep-17 21:05 
GeneralRe: C# .Select Method Pin
Bootzilla3327-Sep-17 4:01
Bootzilla3327-Sep-17 4:01 
GeneralRe: C# .Select Method Pin
Pete O'Hanlon27-Sep-17 4:07
mvePete O'Hanlon27-Sep-17 4:07 
GeneralRe: C# .Select Method Pin
Pete O'Hanlon27-Sep-17 4:28
mvePete O'Hanlon27-Sep-17 4:28 
QuestionInterface Pin
Hardevsinh Mori26-Sep-17 7:23
professionalHardevsinh Mori26-Sep-17 7:23 
GeneralRe: Interface Pin
harold aptroot26-Sep-17 7:23
harold aptroot26-Sep-17 7:23 
GeneralRe: Interface Pin
Hardevsinh Mori26-Sep-17 17:16
professionalHardevsinh Mori26-Sep-17 17:16 
AnswerRe: Interface Pin
Dave Kreskowiak26-Sep-17 8:02
mveDave Kreskowiak26-Sep-17 8:02 
GeneralRe: Interface Pin
Hardevsinh Mori26-Sep-17 17:19
professionalHardevsinh Mori26-Sep-17 17:19 
GeneralRe: Interface Pin
Dave Kreskowiak26-Sep-17 17:22
mveDave Kreskowiak26-Sep-17 17:22 
GeneralRe: Interface Pin
Hardevsinh Mori26-Sep-17 17:28
professionalHardevsinh Mori26-Sep-17 17:28 
GeneralRe: Interface Pin
Dave Kreskowiak26-Sep-17 17:29
mveDave Kreskowiak26-Sep-17 17:29 
GeneralRe: Interface Pin
Hardevsinh Mori26-Sep-17 17:31
professionalHardevsinh Mori26-Sep-17 17:31 
GeneralRe: Interface Pin
Dave Kreskowiak27-Sep-17 1:42
mveDave Kreskowiak27-Sep-17 1:42 
AnswerRe: Interface Pin
OriginalGriff26-Sep-17 8:20
mveOriginalGriff26-Sep-17 8:20 
GeneralRe: Interface Pin
Hardevsinh Mori26-Sep-17 17:26
professionalHardevsinh Mori26-Sep-17 17:26 
AnswerRe: Interface Pin
Richard MacCutchan26-Sep-17 9:25
mveRichard MacCutchan26-Sep-17 9:25 

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.