From f2f23589a6086627166d9f816cf58b277ed75531 Mon Sep 17 00:00:00 2001 From: Doug Bunting <6431421+dougbu@users.noreply.github.com> Date: Fri, 13 Dec 2019 12:56:23 -0800 Subject: [PATCH] Use fields in a `readonly` `struct` --- .../ref/Microsoft.AspNetCore.Mvc.ViewFeatures.Manual.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 acc3d82bb8..bfc077c521 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 @@ -266,7 +266,12 @@ namespace Microsoft.AspNetCore.Mvc.ViewFeatures.Filters { private readonly object _dummy; private readonly int _dummyPrimitive; - public LifecycleProperty(System.Reflection.PropertyInfo propertyInfo, string key) { throw null; } + public LifecycleProperty(System.Reflection.PropertyInfo propertyInfo, string key) + { + _dummy = null; + _dummyPrimitive = 0; + throw null; + } public string Key { get { throw null; } } public System.Reflection.PropertyInfo PropertyInfo { get { throw null; } } public object GetValue(object instance) { throw null; }