I\'m reflecting a property \'Blah\' its Type is ICollection
public ICollection Blah { get; set; }
private void button1_Click(object sender
You'll want to look at GetGenericTypeDefinition for example:
List strings=new List();
Console.WriteLine(strings.GetType().GetGenericTypeDefinition());
foreach (var t in strings.GetType().GetGenericArguments())
{
Console.WriteLine(t);
}
This will output:
System.Collections.Generic.List`1[T]
System.String