[chronojump] new Util.ListStringToString()



commit f36458906ab51f22dae2054218d2379a83d56455
Author: Xavier de Blas <xaviblas gmail com>
Date:   Wed Jul 31 15:35:03 2019 +0200

    new Util.ListStringToString()

 src/util.cs | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
---
diff --git a/src/util.cs b/src/util.cs
index 7f727931..979493dd 100644
--- a/src/util.cs
+++ b/src/util.cs
@@ -1691,6 +1691,21 @@ public class Util
                return returnString;
        }
 
+       public static string ListStringToString (List<string> l)
+       {
+               string str = "";
+               string sep = "";
+               if(l == null)
+                       return str;
+
+               foreach (string s in l)
+               {
+                       str += sep + s;
+                       sep = "\n";
+               }
+
+               return str;
+       }
        public static string [] ArrayListToString (ArrayList myArrayList) {
                //if myArrayList is not defined, return with an empty string
                try { 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]