Hi,
R# doesn't recognize generic method parameters as being of type 'object'
public void GenericMethod<T>(List<T> list)
{
foreach (T t in list)
{
Console.WriteLine(t.ToString());
}
}
I think this has been reported before but still not solved in build 262.
adding this "where T : class" doesn't help, but "where T : struct" does
work.
Best regards,
Wiebe Tijsma