diff --git a/Src/Newtonsoft.Json/Utilities/ReflectionUtils.cs b/Src/Newtonsoft.Json/Utilities/ReflectionUtils.cs index b60203a2..6fd669fa 100644 --- a/Src/Newtonsoft.Json/Utilities/ReflectionUtils.cs +++ b/Src/Newtonsoft.Json/Utilities/ReflectionUtils.cs @@ -666,7 +666,7 @@ namespace Newtonsoft.Json.Utilities { T[] attributes = GetAttributes(attributeProvider, inherit); - return (attributes != null) ? attributes.SingleOrDefault() : null; + return (attributes != null) ? attributes.FirstOrDefault() : null; } #if !(NETFX_CORE || PORTABLE)