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