internal void UpdateCustomProperties(Microsoft.ReportingServices.ReportRendering.CustomPropertyCollection collection) { int count = m_list.Count; for (int i = 0; i < count; i++) { string name = null; object value = null; collection?.GetNameValue(i, out name, out value); m_list[i].Update(name, value, TypeCode.Empty); } }
internal CustomPropertyCollection(RenderingContext renderingContext, Microsoft.ReportingServices.ReportRendering.CustomPropertyCollection collection) { if (collection == null) { m_list = new List <CustomProperty>(); return; } int count = collection.Count; m_list = new List <CustomProperty>(count); for (int i = 0; i < count; i++) { collection.GetNameValueExpressions(i, out Microsoft.ReportingServices.ReportProcessing.ExpressionInfo nameExpression, out Microsoft.ReportingServices.ReportProcessing.ExpressionInfo valueExpression, out string name, out object value); CustomProperty customProperty = new CustomProperty(renderingContext, nameExpression, valueExpression, name, value, TypeCode.Empty); m_list.Add(customProperty); AddPropToLookupTable(name, customProperty); } }