public void AddTypeAggregateFunction(Type type, IAggregateFunction func) { if (_builder.TypesAggregateFunctions == null) _builder.TypesAggregateFunctions = new Dictionary<Type, IAggregateFunction>(); _builder.TypesAggregateFunctions.Add(type, func); }