Skip to content

Commit 0df879e

Browse files
authored
Merge branch 'master' into string-marshaling-cache
2 parents b200bcb + f807a81 commit 0df879e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/runtime/converter.cs

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using System.Reflection;
66
using System.Runtime.InteropServices;
77
using System.Security;
8+
using System.ComponentModel;
89

910
namespace Python.Runtime
1011
{
@@ -134,8 +135,8 @@ internal static IntPtr ToPython(object value, Type type)
134135
return result;
135136
}
136137

137-
if (value is IList && value.GetType().IsGenericType)
138-
{
138+
if (value is IList && !(value is INotifyPropertyChanged) && value.GetType().IsGenericType)
139+
{
139140
using (var resultlist = new PyList())
140141
{
141142
foreach (object o in (IEnumerable)value)

0 commit comments

Comments
 (0)