remove covariant out on IElementConfiguration (#5449) closes #5235
authorShane Neuville <shane94@hotmail.com>
Wed, 27 Mar 2019 18:32:47 +0000 (12:32 -0600)
committerRui Marinho <me@ruimarinho.net>
Wed, 27 Mar 2019 18:32:47 +0000 (18:32 +0000)
Xamarin.Forms.Core/IElementConfiguration.cs

index 2086fba..ed2868b 100644 (file)
@@ -1,7 +1,8 @@
 
 namespace Xamarin.Forms
 {
-       public interface IElementConfiguration<out TElement> where TElement : Element
+       // Don't make this generic covariant as it causes UWP performance to tank
+       public interface IElementConfiguration<TElement> where TElement : Element
        {
                IPlatformElementConfiguration<T, TElement> On<T>() where T : IConfigPlatform;
        }