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.
|
|
|
|
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);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|