8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88d61a9 commit f807a81Copy full SHA for f807a81
src/runtime/converter.cs
@@ -5,6 +5,7 @@
5
using System.Reflection;
6
using System.Runtime.InteropServices;
7
using System.Security;
8
+using System.ComponentModel;
9
10
namespace Python.Runtime
11
{
@@ -134,8 +135,8 @@ internal static IntPtr ToPython(object value, Type type)
134
135
return result;
136
}
137
- if (value is IList && value.GetType().IsGenericType)
138
- {
+ if (value is IList && !(value is INotifyPropertyChanged) && value.GetType().IsGenericType)
139
+ {
140
using (var resultlist = new PyList())
141
142
foreach (object o in (IEnumerable)value)
0 commit comments