.net - Load a range of arrays (C#) -


I need to keep track of how many items are in this node in a feature and I do not know that How to load the array, starting with 1 and ending with a variable

The code for this part is

  // OSXInstaller file list doc. Load ("Distribution.xml"); XmlNodeList ChoiceNode = Doctor. GetElementsByTagName ("Like"); Foreach (XmlNode option in ChoiceNode) {// code was executed only for packages, not categories if (option. HasChildNodes == true) {choicetitle.Add (option properties ["title"] .intertext;); // // calculates the number of items featuring the "title" in the distribution file, so if the user selects # 1 in the list box then it will know // what the number is choicelistcount ++; } If (options.HasChildNodes == false) {} else {Messagebox.Show ("Your Mac OS X installation disc is damaged or mounted incorrectly, please try again and check your information!"); }}  

I'm trying to calculate the number of items with the attribute of the title, then be able to print all items in the list

< Strong> choicetitle string list

I should look something like this:

  listBox1.Items.Add (choicetitle [1-choicetitlecount]);  

Edit: To answer some comments below;

I keep it together in very short time and things like spell check do not really matter to me.

The reason is that I also include another statement, Because it adds an additional check that the OSX install disk was mounted

Add a program & amp; Remove the package for the OSX installer, not as a live-CD type thing but to add the package that you can install on your new OS X installation website

Your question is unclear, but you probably want to use that class, which can keep several elements.

You can get a list & lt; Some type & gt; , and then without worrying about the size or capability, you can add as many as SomeType objects (unless you get out of memory)

< / Div>

Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -