I am trying to set type T of a generic list via reflection. Here is my code:

```
if (propertyType.IsGenericType && propertyType.GetGenericTypeDefinition() == typeof(List<>))
{
    Type itemType = propertyType.GetGenericArguments()[0];
    var result = MyGenericMethod<itemType>(url);   
}

```

This is giving me a syntax error. How can set the type argument T of generic type via reflection ?

Thanks