| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 88d61a9 commit f807a81
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,6 +5,7 @@ | |||
| 5 | 5 | using System.Reflection; | |
| 6 | 6 | using System.Runtime.InteropServices; | |
| 7 | 7 | using System.Security; | |
| 8 | + using System.ComponentModel; | ||
| 8 | 9 | ||
| 9 | 10 | namespace Python.Runtime | |
| 10 | 11 | { | |
@@ -134,8 +135,8 @@ internal static IntPtr ToPython(object value, Type type) | |||
| 134 | 135 | return result; | |
| 135 | 136 | } | |
| 136 | 137 | ||
| 137 | - if (value is IList && value.GetType().IsGenericType) | ||
| 138 | - { | ||
| 138 | + if (value is IList && !(value is INotifyPropertyChanged) && value.GetType().IsGenericType) | ||
| 139 | + { | ||
| 139 | 140 | using (var resultlist = new PyList()) | |
| 140 | 141 | { | |
| 141 | 142 | foreach (object o in (IEnumerable)value) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments