src/NetStandard/Collections/Synchronization/src/CollectionModificationIterationTools.cs
/// <summary>
/// Creates an iterator builder for a modification that has the instruction to replace items.
/// </summary>
/// <param name="modification"></param>
/// <exception cref="ArgumentException">Member <see cref="ICollectionModificationInfo.NewItemsCount"/> is null.</exception>
Creates an iterator builder for a modification that has the instruction to replace items.
Creates an iterator builder for a modification that has the instruction to replace items .
public static IteratorBuilder BeginReplace(ICollectionModificationInfo modification)
        {
            if (modification.NewItemsCount is null) {
                throw new ArgumentNullException("New items were not given while replacing");
            }
            return new IteratorBuilder(
                modification.NewItemsCount.Value,
                modification.NewIndex,
                iteratesBackward: false);
        }
public static IteratorBuilder BeginReplace ( ICollectionModificationInfo modification ) { if ( modification . NewItemsCount is null ) { throw new ArgumentNullException ( " " ) ; } return new IteratorBuilder ( modification . NewItemsCount . Value , modification . NewIndex , iteratesBackward : false ) ; }
Creates an iterator builder for a modification that has the instruction to replace items.
Creates an iterator builder for a modification that has the instruction to replace items .
Member  is null.
Member is null .
modification
ICollectionModificationInfo
None