in src/Microsoft.NET.Sdk.Functions.Generator/AttributeExtensions.cs [137:148]
public static T GetValue<T>(this Attribute attribute, string propertyName)
{
var property = attribute.GetType().GetProperty(propertyName);
if (property != null)
{
return (T)property.GetValue(attribute);
}
else
{
return default(T);
}
}