You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Connected.Framework/Connected.Interop/Reflection/StringSplitter.cs

22 lines
472 B

2 years ago
namespace Connected.Interop.Reflection
{
internal class StringSplitter : IStringSplitter
{
private readonly string _separator;
public StringSplitter()
: this(TypeConverter.DefaultStringSeparator)
{
}
public StringSplitter(string seperator)
{
_separator = seperator ?? throw new ArgumentNullException("separator");
}
public string[] Split(string valueList)
{
return valueList.Split(new[] { _separator }, StringSplitOptions.None);
}
}
}