using System.Collections.Generic;
public static void Main()
var customList = new TransformedProperty<int>();
customList.Property = "1,2,3,4,5";
Console.WriteLine("Current length of ID's: " + customList.ValueList.Count);
customList.ValueList.Add( 10 );
Console.WriteLine("Current property value: " + customList.Property);
public class TransformedProperty<TValueType> {
private readonly IList<TValueType> _list = new List<TValueType>();
return string.Join(",", ValueList);
if (string.IsNullOrWhiteSpace(value)) {
foreach (var val in value.Split(',')) {
ValueList.Add( (TValueType)Convert.ChangeType( val, typeof(TValueType) ) );
public IList<TValueType> ValueList {