Batch update: Fix most issues
This commit is contained in:
parent
514015e45b
commit
eb638f9d0f
13 changed files with 980 additions and 491 deletions
26
source/Helpers/StringCollectionExtension.cs
Normal file
26
source/Helpers/StringCollectionExtension.cs
Normal file
|
@ -0,0 +1,26 @@
|
|||
using System;
|
||||
using System.CodeDom;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Specialized;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace LSLEditor.Helpers
|
||||
{
|
||||
internal static class StringCollectionExtension
|
||||
{
|
||||
internal static string[] ToArray(this StringCollection strings)
|
||||
{
|
||||
string[] ret = new string[strings.Count];
|
||||
strings.CopyTo(ret, 0);
|
||||
return ret;
|
||||
}
|
||||
|
||||
internal static void set(this StringCollection strings, List<string> newList)
|
||||
{
|
||||
strings.Clear();
|
||||
strings.AddRange(newList.ToArray());
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue