Converter works for IList<T> but not for T[]

Environment

  • Pythonnet version:
  • Python version: all
  • Operating System: all

Details

I lost hours on this.
converter.ToPython() does not enter condition "if (value is IList && value.GetType().IsGenericType)" for arrays so arrays that could be converted to python lists are not being converted.

I think it should also work for any generic and not generic ICollection and any Array.

Instead, it currently treats it as a generic PyObject.

Otherwise, great job!