diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-02-20 15:13:30 +0200 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-02-20 15:13:30 +0200 |
| commit | e213a2f2e87d7853e1385f6fb0d0ae4dae8b90e6 (patch) | |
| tree | fd54b2a2a898ad3ef7219ccf76e99fe94343bebd /Software/Visual_Studio/Tango.Core | |
| parent | d6e2772dd98e6880de14ea12be0ef53bae24f763 (diff) | |
| download | Tango-e213a2f2e87d7853e1385f6fb0d0ae4dae8b90e6.tar.gz Tango-e213a2f2e87d7853e1385f6fb0d0ae4dae8b90e6.zip | |
Fixed issues with ExtendedObject stackoverflow.
Working on FSE...
Diffstat (limited to 'Software/Visual_Studio/Tango.Core')
| -rw-r--r-- | Software/Visual_Studio/Tango.Core/DI/TangoIOC.cs | 2 | ||||
| -rw-r--r-- | Software/Visual_Studio/Tango.Core/ExtendedObject.cs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Software/Visual_Studio/Tango.Core/DI/TangoIOC.cs b/Software/Visual_Studio/Tango.Core/DI/TangoIOC.cs index 0ab4f1969..dd3a9f0de 100644 --- a/Software/Visual_Studio/Tango.Core/DI/TangoIOC.cs +++ b/Software/Visual_Studio/Tango.Core/DI/TangoIOC.cs @@ -358,7 +358,7 @@ namespace Tango.Core.DI { var type = target.GetType(); - foreach (var prop in type.GetPropertiesWithAttribute<TangoInjectAttribute>(BindingFlags.Public | BindingFlags.Instance)) + foreach (var prop in type.GetPropertiesWithAttribute<TangoInjectAttribute>(BindingFlags.Public | BindingFlags.Instance | BindingFlags.NonPublic)) { var att = prop.GetCustomAttribute<TangoInjectAttribute>(); diff --git a/Software/Visual_Studio/Tango.Core/ExtendedObject.cs b/Software/Visual_Studio/Tango.Core/ExtendedObject.cs index 1875dcd2d..acead4157 100644 --- a/Software/Visual_Studio/Tango.Core/ExtendedObject.cs +++ b/Software/Visual_Studio/Tango.Core/ExtendedObject.cs @@ -69,7 +69,7 @@ namespace Tango.Core /// <param name="propName">Name of the property.</param> protected virtual void RaisePropertyChangedAuto([CallerMemberName] string caller = null) { - RaisePropertyChanged(caller); + PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(caller)); } /// <summary> |
