diff options
author | Chris King <kingces95@gmail.com> | 2016-03-28 09:59:20 -0700 |
---|---|---|
committer | Chris King <kingces95@gmail.com> | 2016-03-28 09:59:20 -0700 |
commit | 9f49132dbb14d72d5a911718f1d57f20d48dd2eb (patch) | |
tree | 09655d4ca8700b39ea718561b6e1ac309fda73e7 /Xamarin.Forms.Core | |
parent | 3ab4fdc0ff6725286ee1eb26459eee6f4bb55d8c (diff) | |
download | xamarin-forms-9f49132dbb14d72d5a911718f1d57f20d48dd2eb.tar.gz xamarin-forms-9f49132dbb14d72d5a911718f1d57f20d48dd2eb.tar.bz2 xamarin-forms-9f49132dbb14d72d5a911718f1d57f20d48dd2eb.zip |
Fix for bugzilla 39566
Diffstat (limited to 'Xamarin.Forms.Core')
-rw-r--r-- | Xamarin.Forms.Core/ReflectionExtensions.cs | 2 |
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) |