Try ugly fix for LifecycleProperty

This commit is contained in:
wtgodbe 2019-12-13 13:26:24 -08:00
parent 7052bc48d4
commit a3358d71cd
1 changed files with 3 additions and 5 deletions

View File

@ -268,11 +268,9 @@ namespace Microsoft.AspNetCore.Mvc.ViewFeatures.Filters
private readonly int _dummyPrimitive; private readonly int _dummyPrimitive;
public LifecycleProperty(System.Reflection.PropertyInfo propertyInfo, string key) public LifecycleProperty(System.Reflection.PropertyInfo propertyInfo, string key)
{ {
PropertyInfo = _dummy ?? propertyInfo; _dummy = _dummy ?? null;
if (_dummyPrimitive != -2) _dummyPrimitive = _dummyPrimitive + 1;
{ throw null;
Key = key;
}
} }
public string Key { get { throw null; } } public string Key { get { throw null; } }
public System.Reflection.PropertyInfo PropertyInfo { get { throw null; } } public System.Reflection.PropertyInfo PropertyInfo { get { throw null; } }