Skip to content

Commit cfccbc4

Browse files
authored
fix link
1 parent bc9ed86 commit cfccbc4

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
@@ -6737,7 +6737,7 @@ If the target type is a struct or class type that implements `System.Collections
67376737
- The constructor that is applicable with no arguments is invoked.
67386738
- For each *collection_element*, in order:
67396739

6740-
- 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.)
6740+
- 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.)
67416741
- If the *collection_element* is a *spread_element* then one of the following steps is used:
67426742

67436743
- 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)