public void Initialize(InitializationContext context, string dataSetName, AspNetCore.ReportingServices.ReportProcessing.ObjectType objectType, string objectName, string propertyName)
 {
     if (base.Expressions != null && base.Expressions.Length > 0)
     {
         for (int i = 0; i < base.Expressions.Length; i++)
         {
             ExpressionInfo expressionInfo = base.Expressions[i];
             if (base.AggregateType == AggregateTypes.Previous && this.m_scope != null && expressionInfo.Aggregates != null)
             {
                 foreach (DataAggregateInfo aggregate in expressionInfo.Aggregates)
                 {
                     string childScope = default(string);
                     if (aggregate.GetScope(out childScope) && !context.IsSameOrChildScope(this.m_scope, childScope))
                     {
                         context.ErrorContext.Register(ProcessingErrorCode.rsInvalidScopeInInnerAggregateOfPreviousAggregate, Severity.Error, objectType, objectName, propertyName);
                     }
                 }
             }
             expressionInfo.AggregateInitialize(dataSetName, objectType, objectName, propertyName, context);
         }
     }
 }
		internal void Initialize(InitializationContext context, string dataSetName, Microsoft.ReportingServices.ReportProcessing.ObjectType objectType, string objectName, string propertyName)
		{
			if (base.Expressions == null || base.Expressions.Length == 0)
			{
				return;
			}
			for (int i = 0; i < base.Expressions.Length; i++)
			{
				ExpressionInfo expressionInfo = base.Expressions[i];
				if (base.AggregateType == AggregateTypes.Previous && m_scope != null && expressionInfo.Aggregates != null)
				{
					foreach (DataAggregateInfo aggregate in expressionInfo.Aggregates)
					{
						if (aggregate.GetScope(out string scope) && !context.IsSameOrChildScope(m_scope, scope))
						{
							context.ErrorContext.Register(ProcessingErrorCode.rsInvalidScopeInInnerAggregateOfPreviousAggregate, Severity.Error, objectType, objectName, propertyName);
						}
					}
				}
				expressionInfo.AggregateInitialize(dataSetName, objectType, objectName, propertyName, context);
			}
		}