Closed as duplicate of#115231
Closed as duplicate of#115231
Description
Background and motivation
Our scenario is that we have
API Proposal
namespace System.Collections.Generic;
public class MyFancyCollection<T> : IEnumerable<T>
{
public void Fancy(T item);
}
API Usage
// Fancy the value
var c = new MyFancyCollection<int>();
c.Fancy(42);
// Getting the values out
foreach (var v in c)
Console.WriteLine(v);
Alternative Designs
No response
Risks
No response