public CustomAggregateFunctionAttribute(Type aggregateFunctionType)
{
if (aggregateFunctionType == null)
throw new ArgumentNullException("aggregateFunctionType");
if (!aggregateFunctionType.GetInterfaces().Contains(typeof(IAggregateFunction)))
throw new ArgumentException("The aggregateFunctionType Type must typeof(IAggregateFunction).", "aggregateFunctionType");
if (aggregateFunctionType.GetConstructor(Type.EmptyTypes) == null)
throw new ArgumentException("The aggregateFunctionType type must declare a public parameterless consructor.", "aggregateFunctionType");
AggregateFunctionType = aggregateFunctionType;
}