Updated meeting notes from later conversation
This commit is contained in:
Родитель
d16fdec5b4
Коммит
854a560d21
|
@ -32,7 +32,7 @@ The compiler should prefer calling `AddRange(ReadOnlySpan<T>)` if such a method
|
|||
|
||||
The ideal API for constructing collections with contiguous backing storage is to pass the capacity and receive a span to the backing storage. The collection could be passed back using an `out` parameter to enable overloading on collection type.
|
||||
|
||||
The type parameter to use when calling the creation method could be taken from the generic type argument of the collection's `IEnumerable<>` implementation. This strategy would not work for collections which implement `IEnumerable<>` more than once.
|
||||
The type parameter to use when calling the creation method could be the iteration type of the collection being constructed.
|
||||
|
||||
```cs
|
||||
[CollectionLiteralBuilder(
|
||||
|
|
Загрузка…
Ссылка в новой задаче