Try ugly fix for LifecycleProperty

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

View File

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