dennisdoomen / CSharpGuidelines

A set of coding guidelines for C# 9.0, design principles and layout rules for improving the overall quality of your code development.
https://www.csharpcodingguidelines.com
Other
746 stars 271 forks source link

Missing collection interfaces in AV1130 #232

Closed bkoelman closed 2 years ago

bkoelman commented 2 years ago

The list should include IReadOnlySet<T>, which was introduced in .NET 5. The list should also include IAsyncEnumerable<T>.

The exception list is incomplete too, as it misses ImmutableHashSet<T>, ImmutableSortedSet<T>, ImmutableQueue<T>, ImmutableStack<T> and ImmutableSortedDictionary<TKey,TValue>. However it can be left as-is, because the line reads "such as" so it is not trying to be complete.