|
|
|
@ -140,18 +140,9 @@ namespace Avalonia.Data.Converters |
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
Action<object> action = null; |
|
|
|
try |
|
|
|
{ |
|
|
|
action = Expression |
|
|
|
.Lambda<Action<object>>(body, parameter) |
|
|
|
.Compile(); |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|
{ |
|
|
|
throw ex; |
|
|
|
} |
|
|
|
return action; |
|
|
|
return Expression |
|
|
|
.Lambda<Action<object>>(body, parameter) |
|
|
|
.Compile(); |
|
|
|
} |
|
|
|
|
|
|
|
static Func<object, bool> CreateCanExecute(object target |
|
|
|
|