Differences

This shows you the differences between the selected revisions of the page.

2016-08-03 2017-10-04
Restored revision 1453460841. Undoing revision 1470239717. (martin) (hidden) no need for string.format in call to controle.writeline (martin)
Line 88: Line 88:
<code csharp> <code csharp>
XPathNodeIterator files = nav.Select("//w:file", ns); XPathNodeIterator files = nav.Select("//w:file", ns);
-Console.WriteLine(string.Format("There are {0} files and subdirectories:", files.Count));+Console.WriteLine("There are {0} files and subdirectories:", files.Count);
foreach (XPathNavigator file in files) foreach (XPathNavigator file in files)
{ {
Line 189: Line 189:
       
    XPathNodeIterator files = nav.Select("//w:file", ns);     XPathNodeIterator files = nav.Select("//w:file", ns);
-    Console.WriteLine(string.Format("There are {0} files and subdirectories:", files.Count));+    Console.WriteLine("There are {0} files and subdirectories:", files.Count);
    foreach (XPathNavigator file in files)     foreach (XPathNavigator file in files)
    {     {
Line 259: Line 259:
       
    Dim files As XPathNodeIterator = nav.Select("//w:file", ns)     Dim files As XPathNodeIterator = nav.Select("//w:file", ns)
-    Console.WriteLine(string.Format("There are {0} files and subdirectories:", files.Count))+    Console.WriteLine("There are {0} files and subdirectories:", files.Count)
    For Each file As XPathNavigator In files     For Each file As XPathNavigator In files
        Console.WriteLine(file.SelectSingleNode("w:filename/@value", ns).Value)         Console.WriteLine(file.SelectSingleNode("w:filename/@value", ns).Value)

Last modified: by martin