Browse Source

Prevent stack overflow.

pull/58/head
Steven Kirk 12 years ago
parent
commit
ad7eed9bd1
  1. 2
      Perspex.Controls/Utils/IEnumerableUtils.cs

2
Perspex.Controls/Utils/IEnumerableUtils.cs

@ -30,7 +30,7 @@ namespace Perspex.Controls.Utils
}
else
{
return items.Cast<object>().Count();
return Enumerable.Count(items.Cast<object>());
}
}

Loading…
Cancel
Save