src/NetStandard/Collections/Algorithms/src/Algorithms/Modifications/CollectionSynchronizationMethod{`3}.cs
/// <summary>
/// Checks arguments when yielding collection modifications.
/// </summary>
/// <param name="leftItems">The collection you want to have transformed.</param>
/// <param name="rightItems">The collection in which <paramref name="leftItems"/> could be transformed.</param>
/// <exception cref="ArgumentNullException">Thrown when <paramref name="leftItems"/> is null.</exception>
Checks arguments when yielding collection modifications.
Checks arguments when yielding collection modifications .
protected void CheckArgumentsWhenYieldingCollectionModifications(IEnumerable<TLeftItem> leftItems, [NotNull] ref IEnumerable<TRightItem>? rightItems)
        {
            if (leftItems is null) {
                throw new ArgumentNullException(nameof(leftItems));
            }
            rightItems ??= Enumerable.Empty<TRightItem>();
        }
protected void CheckArgumentsWhenYieldingCollectionModifications ( IEnumerable < TLeftItem > leftItems , [ NotNull ] ref IEnumerable < TRightItem > ? rightItems ) { if ( leftItems is null ) { throw new ArgumentNullException ( nameof ( leftItems ) ) ; } rightItems ??= Enumerable . Empty < TRightItem > ( ) ; }
Checks arguments when yielding collection modifications.
Checks arguments when yielding collection modifications .
Thrown when  is null.
Thrown when is null .
leftItems
IEnumerable<TLeftItem>
The collection you want to have transformed.
The collection you want to have transformed .
ref
[NotNull]
rightItems
The collection in which  could be transformed.
The collection in which could be transformed .