-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
🚧 work in progressWork that is current in progressWork that is current in progressapi-approved(4) API was approved in API review, it can be implemented(4) API was approved in API review, it can be implemented
Milestone
Description
Background and motivation
PrinterSettings.StringCollection implements ICollection, but not ICollection<string>. It really isn't meant to be mutated, but implementing IReadOnlyList<string> is trivial (it already has everything except for IEnumerable<string>GetEnumerator().
API Proposal
namespace System.Drawing.Printing;
-public class StringCollection : ICollection
+public class StringCollection : ICollection, IReadOnlyList<string>
{
+ IEnumerator<string> IEnumerable<string>.GetEnumerator();
}API Usage
PrinterSettings.InstalledPrinters. // Any IEnumerable<string> extensionReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
🚧 work in progressWork that is current in progressWork that is current in progressapi-approved(4) API was approved in API review, it can be implemented(4) API was approved in API review, it can be implemented