[chronojump/FS-TFT-Menu] Util.cs StringArrayToListString()



commit e93969d4bd17c92f4cd24b5d1aaf6d6eed209a97
Author: Xavier de Blas <xaviblas gmail com>
Date:   Thu Apr 28 17:38:34 2022 +0200

    Util.cs StringArrayToListString()

 src/util.cs | 8 ++++++++
 1 file changed, 8 insertions(+)
---
diff --git a/src/util.cs b/src/util.cs
index 0f54cb05e..1657e3f60 100644
--- a/src/util.cs
+++ b/src/util.cs
@@ -2154,7 +2154,15 @@ public class Util
                }
                return uniqueString;
        }
+
+       public static List<string> StringArrayToListString (string [] arrayString)
+       {
+               List<string> str_l = new List<string> ();
+               foreach (string myStr in arrayString)
+                       str_l.Add (myStr);
        
+               return str_l;
+       }
        
        //to create an string [] of one member
        public static string [] StringToStringArray (string str) {


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