ReportViewerForMvc/ReportDataSourceCollectionExtensions.cs
/// <summary>
/// Adds the elements of the specified collection to the end of the ReportDataSourceCollection.
/// </summary>
/// <param name="reportDataSourceCollection">The ReportDataSourceCollection that this method extends.</param>
/// <param name="collection">The collection whose elements should be added to the end of the ReportDataSourceCollection.</param>
Adds the elements of the specified collection to the end of the ReportDataSourceCollection.
Adds the elements of the specified collection to the end of the ReportDataSourceCollection .
public static void Add(this ReportDataSourceCollection reportDataSourceCollection, IEnumerable<ReportDataSource> collection)
        {
            if (reportDataSourceCollection == null)
            {
                throw new ArgumentNullException("reportDataSourceCollection", "Value cannot be null.");
            }
            if (collection == null)
            {
                throw new ArgumentNullException("collection", "Value cannot be null.");
            }
            foreach (ReportDataSource reportDataSource in collection)
            {
                reportDataSourceCollection.Add(reportDataSource);
            }
        }
public static void Add ( this ReportDataSourceCollection reportDataSourceCollection , IEnumerable < ReportDataSource > collection ) { if ( reportDataSourceCollection == null ) { throw new ArgumentNullException ( " " , " " ) ; } if ( collection == null ) { throw new ArgumentNullException ( " " , " " ) ; } foreach ( ReportDataSource reportDataSource in collection ) { reportDataSourceCollection . Add ( reportDataSource ) ; } }
Adds the elements of the specified collection to the end of the ReportDataSourceCollection.
Adds the elements of the specified collection to the end of the ReportDataSourceCollection .
ReportDataSourceCollection
this
collection
IEnumerable<ReportDataSource>
The collection whose elements should be added to the end of the ReportDataSourceCollection.
The collection whose elements should be added to the end of the ReportDataSourceCollection .
reportDataSourceCollection
The ReportDataSourceCollection that this method extends.
The ReportDataSourceCollection that this method extends .