internal override void Update(object[] expressions, IErrorContext iErrorContext) { //IL_0096: Unknown result type (might be due to invalid IL or missing references) //IL_009c: Unknown result type (might be due to invalid IL or missing references) //IL_00a6: Expected O, but got Unknown //IL_00b3: Unknown result type (might be due to invalid IL or missing references) //IL_00b9: Unknown result type (might be due to invalid IL or missing references) //IL_00c3: Expected O, but got Unknown object obj = expressions[0]; Microsoft.ReportingServices.ReportProcessing.DataAggregate.DataTypeCode typeCode = DataAggregate.GetTypeCode(obj); if (!DataAggregate.IsNull(typeCode)) { if (!DataTypeUtility.IsSpatial(typeCode)) { iErrorContext.Register(ProcessingErrorCode.rsUnionOfNonSpatialData, Severity.Warning); throw new ReportProcessingException(ErrorCode.rsInvalidOperation); } if (m_expressionType == Microsoft.ReportingServices.ReportProcessing.DataAggregate.DataTypeCode.Null) { m_expressionType = typeCode; } else if (typeCode != m_expressionType) { iErrorContext.Register(ProcessingErrorCode.rsUnionOfMixedSpatialTypes, Severity.Warning); throw new ReportProcessingException(ErrorCode.rsInvalidOperation); } if (m_currentUnion == null) { m_expressionType = typeCode; m_currentUnion = obj; } } }
internal override void Update(object[] expressions, IErrorContext iErrorContext) { object obj = expressions[0]; Microsoft.ReportingServices.ReportProcessing.DataAggregate.DataTypeCode typeCode = DataAggregate.GetTypeCode(obj); if (!DataAggregate.IsNull(typeCode)) { if (!DataAggregate.IsVariant(typeCode) || DataTypeUtility.IsSpatial(typeCode)) { iErrorContext.Register(ProcessingErrorCode.rsInvalidExpressionDataType, Severity.Warning); throw new ReportProcessingException(ErrorCode.rsInvalidOperation); } if (!m_distinctValues.ContainsKey(obj)) { m_distinctValues.Add(obj, null); } } }
internal override void Update(object[] expressions, IErrorContext iErrorContext) { object obj = expressions[0]; Microsoft.ReportingServices.ReportProcessing.DataAggregate.DataTypeCode typeCode = DataAggregate.GetTypeCode(obj); if (DataAggregate.IsNull(typeCode)) { return; } if (!DataAggregate.IsVariant(typeCode) || DataTypeUtility.IsSpatial(typeCode)) { iErrorContext.Register(ProcessingErrorCode.rsMinMaxOfNonSortableData, Severity.Warning); throw new ReportProcessingException(ErrorCode.rsInvalidOperation); } if (m_currentMin == null) { m_currentMin = obj; m_expressionType = typeCode; return; } bool validComparisonResult; int num = m_comparer.Compare(m_currentMin, obj, throwExceptionOnComparisonFailure: false, extendedTypeComparisons: false, out validComparisonResult); if (!validComparisonResult) { if (typeCode != m_expressionType) { iErrorContext.Register(ProcessingErrorCode.rsAggregateOfMixedDataTypes, Severity.Warning); throw new ReportProcessingException(ErrorCode.rsInvalidOperation); } iErrorContext.Register(ProcessingErrorCode.rsMinMaxOfNonSortableData, Severity.Warning); } else if (num > 0) { m_currentMin = obj; m_expressionType = typeCode; } }
public override void Update(object[] expressions, IErrorContext iErrorContext) { object obj = expressions[0]; AspNetCore.ReportingServices.ReportProcessing.DataAggregate.DataTypeCode typeCode = DataAggregate.GetTypeCode(obj); if (!DataAggregate.IsNull(typeCode)) { if (!DataAggregate.IsVariant(typeCode) || DataTypeUtility.IsSpatial(typeCode)) { iErrorContext.Register(ProcessingErrorCode.rsMinMaxOfNonSortableData, Severity.Warning); throw new ReportProcessingException(ErrorCode.rsInvalidOperation); } if (this.m_currentMax == null) { this.m_currentMax = obj; this.m_expressionType = typeCode; } else { bool flag = default(bool); int num = this.m_comparer.Compare(this.m_currentMax, obj, false, false, out flag); if (!flag) { if (typeCode != this.m_expressionType) { iErrorContext.Register(ProcessingErrorCode.rsAggregateOfMixedDataTypes, Severity.Warning); throw new ReportProcessingException(ErrorCode.rsInvalidOperation); } iErrorContext.Register(ProcessingErrorCode.rsMinMaxOfNonSortableData, Severity.Warning); } else if (num < 0) { this.m_currentMax = obj; this.m_expressionType = typeCode; } } } }
public override void Update(object[] expressions, IErrorContext iErrorContext) { object obj = expressions[0]; AspNetCore.ReportingServices.ReportProcessing.DataAggregate.DataTypeCode typeCode = DataAggregate.GetTypeCode(obj); if (!DataAggregate.IsNull(typeCode)) { if (!DataTypeUtility.IsSpatial(typeCode)) { iErrorContext.Register(ProcessingErrorCode.rsUnionOfNonSpatialData, Severity.Warning); throw new ReportProcessingException(ErrorCode.rsInvalidOperation); } if (this.m_expressionType == AspNetCore.ReportingServices.ReportProcessing.DataAggregate.DataTypeCode.Null) { this.m_expressionType = typeCode; } else if (typeCode != this.m_expressionType) { iErrorContext.Register(ProcessingErrorCode.rsUnionOfMixedSpatialTypes, Severity.Warning); throw new ReportProcessingException(ErrorCode.rsInvalidOperation); } if (this.m_currentUnion == null) { this.m_expressionType = typeCode; this.m_currentUnion = obj; } //else if (this.m_expressionType == AspNetCore.ReportingServices.ReportProcessing.DataAggregate.DataTypeCode.SqlGeometry) //{ // this.m_currentUnion = ((SqlGeometry)this.m_currentUnion).STUnion((SqlGeometry)obj); //} //else //{ // this.m_currentUnion = ((SqlGeography)this.m_currentUnion).STUnion((SqlGeography)obj); //} } }