public static GetAggregateFunctionAttribute ( this info ) : AggregateFunction? | ||
info | this | Property metadata info |
return | AggregateFunction? |
public static AggregateFunction? GetAggregateFunctionAttribute(this MemberInfo info)
{
var aggregateFunction = info.GetCustomAttributes(true).OfType<AggregateFunctionAttribute>().FirstOrDefault();
if (aggregateFunction == null) return null;
return aggregateFunction.AggregateFunction;
}