From 719749fc4475cecc2986df9484be63720bacf6b9 Mon Sep 17 00:00:00 2001 From: Roy Ben Shabat Date: Fri, 15 May 2020 13:45:37 +0300 Subject: Diagnostics --- Software/Visual_Studio/Tango.Core/ExtendedObject.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Software/Visual_Studio/Tango.Core') diff --git a/Software/Visual_Studio/Tango.Core/ExtendedObject.cs b/Software/Visual_Studio/Tango.Core/ExtendedObject.cs index 63a75480c..f09a82ae9 100644 --- a/Software/Visual_Studio/Tango.Core/ExtendedObject.cs +++ b/Software/Visual_Studio/Tango.Core/ExtendedObject.cs @@ -82,7 +82,7 @@ namespace Tango.Core { InvokeUI(() => { - foreach (var prop in this.GetType().GetProperties().Where(x => x.PropertyType == typeof(RelayCommand))) + foreach (var prop in this.GetType().GetProperties().Where(x => typeof(RelayCommand).IsAssignableFrom(x.PropertyType))) { var value = prop.GetValue(this) as RelayCommand; -- cgit v1.3.1