public FieldImpl this[int index] { get { this.ValidateFieldCollection(); try { FieldImpl fieldImpl = this.m_collection[index]; fieldImpl.UsedInExpression = true; return(fieldImpl); } catch (RSException) { throw; } catch (Exception e) { if (AsynchronousExceptionDetection.IsStoppingException(e)) { throw; } throw new ReportProcessingException_NonExistingFieldReference(); } } set { Global.Tracer.Assert(null != this.m_collection); this.m_collection[index] = value; } }
public override Field this[string key] { get { if (key == null) { throw new ReportProcessingException_NonExistingFieldReference(); } this.ValidateFieldCollection(); try { FieldImpl fieldImpl = this.m_collection[(int)this.m_nameMap[key]]; fieldImpl.UsedInExpression = true; return(fieldImpl); } catch (RSException) { throw; } catch (Exception e) { if (AsynchronousExceptionDetection.IsStoppingException(e)) { throw; } throw new ReportProcessingException_NonExistingFieldReference(); } } }
public void Add(string name, FieldImpl field) { Global.Tracer.Assert(null != this.m_collection, "(null != m_collection)"); Global.Tracer.Assert(null != this.m_nameMap, "(null != m_nameMap)"); Global.Tracer.Assert(this.m_count < this.m_collection.Length, "(m_count < m_collection.Length)"); this.m_nameMap.Add(name, this.m_count); this.m_collection[this.m_count] = field; this.m_count++; }
public void AddFieldsUsedInExpression(List <string> fieldsUsedInValueExpression) { if (this.m_collection != null) { for (int i = 0; i < this.m_collection.Length; i++) { FieldImpl fieldImpl = this.m_collection[i]; if (fieldImpl.UsedInExpression && fieldImpl.FieldDef != null) { fieldsUsedInValueExpression.Add(fieldImpl.FieldDef.DataField); } } } }
public void SetFields(FieldImpl[] fields) { this.NewRow(); Global.Tracer.Assert(null != this.m_collection, "(null != m_collection)"); if (fields == null) { for (int i = 0; i < this.m_count; i++) { FieldImpl fieldImpl = this.m_collection[i]; AspNetCore.ReportingServices.ReportProcessing.Field fieldDef = (fieldImpl == null) ? null : fieldImpl.FieldDef; this.m_collection[i] = new FieldImpl(null, false, fieldDef); } } else { Global.Tracer.Assert(fields.Length == this.m_count, "(fields.Length == m_count)"); for (int j = 0; j < this.m_count; j++) { this.m_collection[j] = fields[j]; } this.m_isAggregateRow = false; this.m_aggregationFieldCount = this.m_aggregationFieldCountForDetailRow; } }