File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -521,7 +521,7 @@ This feature means that associative containers can be initialized using
521521syntax similar to what's been in place for sequence containers for several
522522versions.
523523
524- ### Extension ` Add ` methods in collection initializers
524+ ## Extension ` Add ` methods in collection initializers
525525
526526Another feature that makes collection initialization easier is the ability
527527to use an * extension method* for the ` Add ` method. This feature was
@@ -547,10 +547,7 @@ Now you can, but only if you create an extension method that maps `Add` to
547547
548548What you are doing with this feature is to map whatever method adds
549549items to a collection to a method named ` Add ` by creating an
550- extension method:
551-
552- [ !code-csharp[ Enrollment] ( ../../../samples/snippets/csharp/new-in-6/enrollment.cs#Enrollment )]
553- [ !code-csharp[ ExtensionAddSample] ( ../../../samples/snippets/csharp/new-in-6/classList.cs#ExtensionAddSample )]
550+ extension method.
554551
555552## Improved overload resolution
556553
You can’t perform that action at this time.
0 commit comments