From a3358d71cd66bebe03e415de1342a1c5c28b3bac Mon Sep 17 00:00:00 2001 From: wtgodbe Date: Fri, 13 Dec 2019 13:26:24 -0800 Subject: [PATCH] Try ugly fix for LifecycleProperty --- .../ref/Microsoft.AspNetCore.Mvc.ViewFeatures.Manual.cs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/Mvc/Mvc.ViewFeatures/ref/Microsoft.AspNetCore.Mvc.ViewFeatures.Manual.cs b/src/Mvc/Mvc.ViewFeatures/ref/Microsoft.AspNetCore.Mvc.ViewFeatures.Manual.cs index e1c6ce7806..12f742474e 100644 --- a/src/Mvc/Mvc.ViewFeatures/ref/Microsoft.AspNetCore.Mvc.ViewFeatures.Manual.cs +++ b/src/Mvc/Mvc.ViewFeatures/ref/Microsoft.AspNetCore.Mvc.ViewFeatures.Manual.cs @@ -268,11 +268,9 @@ namespace Microsoft.AspNetCore.Mvc.ViewFeatures.Filters private readonly int _dummyPrimitive; public LifecycleProperty(System.Reflection.PropertyInfo propertyInfo, string key) { - PropertyInfo = _dummy ?? propertyInfo; - if (_dummyPrimitive != -2) - { - Key = key; - } + _dummy = _dummy ?? null; + _dummyPrimitive = _dummyPrimitive + 1; + throw null; } public string Key { get { throw null; } } public System.Reflection.PropertyInfo PropertyInfo { get { throw null; } }