Click here to Skip to main content
15,881,882 members
Home / Discussions / C#
   

C#

 
QuestionABCPDF library and using dll Pin
Mol4ok3-Dec-15 23:48
Mol4ok3-Dec-15 23:48 
AnswerRe: ABCPDF library and using dll Pin
OriginalGriff4-Dec-15 0:06
mveOriginalGriff4-Dec-15 0:06 
GeneralRe: ABCPDF library and using dll Pin
Member 1198551412-Mar-18 1:29
Member 1198551412-Mar-18 1:29 
GeneralRe: ABCPDF library and using dll Pin
OriginalGriff12-Mar-18 1:38
mveOriginalGriff12-Mar-18 1:38 
QuestionHow to make a list that contain lists which contain lists Pin
kmkmahesh3-Dec-15 20:53
professionalkmkmahesh3-Dec-15 20:53 
AnswerRe: How to make a list that contain lists which contain lists Pin
OriginalGriff3-Dec-15 21:34
mveOriginalGriff3-Dec-15 21:34 
AnswerRe: How to make a list that contain lists which contain lists Pin
Pete O'Hanlon3-Dec-15 21:37
mvePete O'Hanlon3-Dec-15 21:37 
AnswerRe: How to make a list that contain lists which contain lists Pin
LeHuuTien3-Dec-15 22:15
LeHuuTien3-Dec-15 22:15 
I have an example. I think my example can help you.
I have a class

C#
public class Action_Info
{
    public string valueResult { get; set; }
    public string valueError { get; set; }
    public string valueInfo { get; set; }
    public long timeWait { get; set; }
}

And a list:
C#
List<Action_Info> listActions;


I have a xml file:
<Script>
<Action>
<Result>Success</Result>
<ErrorReason>None</ErrorReason>
<InfoID></InfoID>
<TimeWait>10941</TimeWait>
</Action>
<Action>
<Result></Result>
<ErrorReason></ErrorReason>
<InfoID>NewRcvXbarRsData</InfoID>
<TimeWait>17666</TimeWait>
</Action>
<Action>
<Result></Result>
<ErrorReason></ErrorReason>
<InfoID>NewRcvXbarRsData</InfoID>
<TimeWait>17953</TimeWait>
</Action>
</Script>
Then I read from xml file to listActions:
C#
XDocument doc = XDocument.Load(filePathXML);
            listActions = doc.Descendants("Action").Select(d =>
            new Action_Info
            {
                valueResult = d.Element("Result").Value,
                valueError = d.Element("ErrorReason").Value,
                valueInfo = d.Element("InfoID").Value,
                timeWait = long.Parse(d.Element("TimeWait").Value)
            }).ToList();

You can do what you want with your list.
AnswerRe: How to make a list that contain lists which contain lists Pin
BillWoodruff4-Dec-15 4:04
professionalBillWoodruff4-Dec-15 4:04 
QuestionProblem with Event Pin
Member 121764283-Dec-15 10:19
Member 121764283-Dec-15 10:19 
AnswerRe: Problem with Event Pin
Matt T Heffron3-Dec-15 11:09
professionalMatt T Heffron3-Dec-15 11:09 
AnswerRe: Problem with Event Pin
Mycroft Holmes3-Dec-15 12:07
professionalMycroft Holmes3-Dec-15 12:07 
Questionwcf with net msmq binding Pin
Member 106619973-Dec-15 2:21
Member 106619973-Dec-15 2:21 
SuggestionRe: wcf with net msmq binding Pin
Richard MacCutchan3-Dec-15 3:51
mveRichard MacCutchan3-Dec-15 3:51 
QuestionWindows Service with multitple jobs in c# Pin
Member 109327092-Dec-15 12:02
Member 109327092-Dec-15 12:02 
AnswerRe: Windows Service with multitple jobs in c# Pin
Dave Kreskowiak2-Dec-15 12:33
mveDave Kreskowiak2-Dec-15 12:33 
QuestionHandle transaction without deadlock Pin
Member 106619971-Dec-15 4:25
Member 106619971-Dec-15 4:25 
AnswerRe: Handle transaction without deadlock Pin
Eddy Vluggen1-Dec-15 4:55
professionalEddy Vluggen1-Dec-15 4:55 
QuestionTimelineTool WPF C# Help Pin
Member 121189591-Dec-15 3:47
Member 121189591-Dec-15 3:47 
AnswerRe: TimelineTool WPF C# Help Pin
Pete O'Hanlon1-Dec-15 4:01
mvePete O'Hanlon1-Dec-15 4:01 
SuggestionRe: TimelineTool WPF C# Help Pin
Matt T Heffron1-Dec-15 8:06
professionalMatt T Heffron1-Dec-15 8:06 
QuestionJamaa SMPP: A connection attempt failed because the connected party did not properly respond Pin
Jassim Rahma1-Dec-15 0:38
Jassim Rahma1-Dec-15 0:38 
AnswerRe: Jamaa SMPP: A connection attempt failed because the connected party did not properly respond Pin
Richard Deeming1-Dec-15 0:44
mveRichard Deeming1-Dec-15 0:44 
QuestionNeed help with regards to datagridview Pin
Tbweri30-Nov-15 15:31
Tbweri30-Nov-15 15:31 
AnswerRe: Need help with regards to datagridview Pin
OriginalGriff30-Nov-15 21:38
mveOriginalGriff30-Nov-15 21:38 

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.