Browse Source

Fixed failing tests

pull/383/head
Wiesław Šoltés 11 years ago
parent
commit
9b4ddce3b5
  1. 2
      src/Markup/Perspex.Markup/Data/Plugins/InpcPropertyAccessorPlugin.cs

2
src/Markup/Perspex.Markup/Data/Plugins/InpcPropertyAccessorPlugin.cs

@ -43,7 +43,7 @@ namespace Perspex.Markup.Data.Plugins
Contract.Requires<ArgumentNullException>(propertyName != null);
Contract.Requires<ArgumentNullException>(changed != null);
var p = instance.GetType().GetRuntimeProperties().First(_ => _.Name == propertyName);
var p = instance.GetType().GetRuntimeProperties().FirstOrDefault(_ => _.Name == propertyName);
if (p != null)
{

Loading…
Cancel
Save