public string ConvertObjectTo(object objectvalue) { if (objectvalue == null) { return(string.Empty); } return(CollectionParserHelper.ConcatValues( CollectionParserHelper.ConvertElementsTo(objectvalue, elementStringParser) )); }
public object ConvertObjectFrom(string stringvalue) { var collection = (IList)constructorinfo.Invoke(Type.EmptyTypes); foreach (var value in CollectionParserHelper.ConvertElementsFrom(stringvalue, elementStringParser)) { collection.Add(value); } return(collection); }