in src/Microsoft.NET.Sdk.Functions.Generator/AttributeExtensions.cs [165:178]
private static bool TryGetPropertyValue(PropertyInfo property, object propertyValue, out string value)
{
value = null;
#if NET46
if (property.PropertyType.IsEnum)
#else
if (property.PropertyType.GetTypeInfo().IsEnum)
#endif
{
value = Enum.GetName(property.PropertyType, propertyValue).ToLowerFirstCharacter();
return true;
}
return false;
}