Click here to Skip to main content
15,913,587 members
Home / Discussions / C#
   

C#

 
AnswerRe: How can I add a value for each pixel Pin
OriginalGriff27-Sep-17 19:41
mveOriginalGriff27-Sep-17 19:41 
QuestionExporting the placeholder and its graph to excel sheet Pin
Atul Naik27-Sep-17 8:46
Atul Naik27-Sep-17 8:46 
Questionhow to change each pixel color Pin
WI54M27-Sep-17 1:46
WI54M27-Sep-17 1:46 
AnswerRe: how to change each pixel color Pin
Dave Kreskowiak27-Sep-17 1:47
mveDave Kreskowiak27-Sep-17 1:47 
GeneralRe: how to change each pixel color Pin
WI54M27-Sep-17 18:56
WI54M27-Sep-17 18:56 
AnswerRe: how to change each pixel color Pin
Eddy Vluggen27-Sep-17 1:52
professionalEddy Vluggen27-Sep-17 1:52 
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 PinPopular
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 

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.