summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris King <kingces95@gmail.com>2016-03-28 09:59:20 -0700
committerChris King <kingces95@gmail.com>2016-03-28 09:59:20 -0700
commit9f49132dbb14d72d5a911718f1d57f20d48dd2eb (patch)
tree09655d4ca8700b39ea718561b6e1ac309fda73e7
parent3ab4fdc0ff6725286ee1eb26459eee6f4bb55d8c (diff)
downloadxamarin-forms-9f49132dbb14d72d5a911718f1d57f20d48dd2eb.tar.gz
xamarin-forms-9f49132dbb14d72d5a911718f1d57f20d48dd2eb.tar.bz2
xamarin-forms-9f49132dbb14d72d5a911718f1d57f20d48dd2eb.zip
Fix for bugzilla 39566
-rw-r--r--Xamarin.Forms.Core/ReflectionExtensions.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Xamarin.Forms.Core/ReflectionExtensions.cs b/Xamarin.Forms.Core/ReflectionExtensions.cs
index ab26fde5..95fd18ca 100644
--- a/Xamarin.Forms.Core/ReflectionExtensions.cs
+++ b/Xamarin.Forms.Core/ReflectionExtensions.cs
@@ -9,7 +9,7 @@ namespace Xamarin.Forms
{
public static FieldInfo GetField(this Type type, Func<FieldInfo, bool> predicate)
{
- return GetFields(type).SingleOrDefault(predicate);
+ return GetFields(type).FirstOrDefault(predicate);
}
public static FieldInfo GetField(this Type type, string name)