Use fields in a `readonly` `struct`

This commit is contained in:
Doug Bunting 2019-12-13 12:56:23 -08:00
parent a11d4b32ad
commit f2f23589a6
No known key found for this signature in database
GPG Key ID: EE41520987982C03
1 changed files with 6 additions and 1 deletions

View File

@ -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; }