Hello,
I'm trying to convert a generic value into an array of generic values so that I can comma delimit them. However, I can't convert from my generic type into an array of generic types. hopefully some code will help make things clearer...
public T Item
{
get { return item; }
set { item = value; }
}
public string GetItemAsString()
{
string itemString = Item.ToString();
if(Item.GetType().IsArray)
{
itemString = string.Join(",", Item);
}
return itemString;
}
Can someone point me in the right direction?
Thanks.