-Protect against multiple attributes error

This commit is contained in:
James Newton-King
2015-01-11 19:46:39 +13:00
parent 569ca0b5f9
commit 1497343173
@@ -666,7 +666,7 @@ namespace Newtonsoft.Json.Utilities
{
T[] attributes = GetAttributes<T>(attributeProvider, inherit);
return (attributes != null) ? attributes.SingleOrDefault() : null;
return (attributes != null) ? attributes.FirstOrDefault() : null;
}
#if !(NETFX_CORE || PORTABLE)