Skip to content

Commit 4922e5a

Browse files
RexJaeschkeBillWagner
authored andcommitted
fix link
1 parent e1e5d86 commit 4922e5a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

standard/classes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6850,7 +6850,7 @@ If the target type is a struct or class type that implements `System.Collections
68506850
- The constructor that is applicable with no arguments is invoked.
68516851
- For each *collection_element*, in order:
68526852

6853-
- If the *collection_element* is an *expression_element*, the applicable `Add` instance or extension method is invoked with the *element_expression* as the argument. (Unlike classic collection initializer behavior ([§12.8.16.4](expressions.md#128164-collection-initializers)), element evaluation and `Add` calls are not necessarily interleaved.)
6853+
- If the *collection_element* is an *expression_element*, the applicable `Add` instance or extension method is invoked with the *element_expression* as the argument. (Unlike classic collection initializer behavior ([§12.8.17.3.1](expressions.md#1281731-collection-initializers)), element evaluation and `Add` calls are not necessarily interleaved.)
68546854
- If the *collection_element* is a *spread_element* then one of the following steps is used:
68556855

68566856
- An applicable `GetEnumerator` instance or extension method is invoked on the *spread_element*’s *expression*, and for each item from the enumerator the applicable `Add` instance or extension method is invoked on the collection instance with the item as the argument. If the enumerator implements `IDisposable`, then `Dispose` shall be called after enumeration, regardless of any exceptions.

0 commit comments

Comments
 (0)