From 7052bc48d42509ebe23f64c65c51cf0455feb9fd Mon Sep 17 00:00:00 2001 From: wtgodbe Date: Fri, 13 Dec 2019 13:19:27 -0800 Subject: [PATCH] Try ugly fix for LifecycleProperty --- .../ref/Microsoft.AspNetCore.Mvc.ViewFeatures.Manual.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 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 bfc077c521..e1c6ce7806 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,9 +268,11 @@ namespace Microsoft.AspNetCore.Mvc.ViewFeatures.Filters private readonly int _dummyPrimitive; public LifecycleProperty(System.Reflection.PropertyInfo propertyInfo, string key) { - _dummy = null; - _dummyPrimitive = 0; - throw null; + PropertyInfo = _dummy ?? propertyInfo; + if (_dummyPrimitive != -2) + { + Key = key; + } } public string Key { get { throw null; } } public System.Reflection.PropertyInfo PropertyInfo { get { throw null; } }