Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove ICollection<T> as an allowed interface from AV1130 #216

Merged
merged 1 commit into from Aug 17, 2020

Conversation

maikelsteneker
Copy link
Contributor

Reasoning: the ICollection interface actually allows one to modify
the collection, which goes against the intention of this guideline. The
reason for this exception was that versions of .NET Framework before 4.5 did not
include immutable collections.

Closes #215

Reasoning: the ICollection<T> interface actually allows one to modify
the collection, which goes against the intention of this guideline. The
reason for this exception was that versions of .NET Framework before 4.5 did not
include immutable collections.

Closes dennisdoomen#215
@dennisdoomen
Copy link
Owner

Waiting for @bkoelman's approval

@bkoelman
Copy link
Contributor

Looks good to me, thanks.

@dennisdoomen dennisdoomen merged commit 0ed6483 into dennisdoomen:master Aug 17, 2020
@dennisdoomen
Copy link
Owner

Awesome. Thanks for this contribution.

mapfel pushed a commit to stepahead/CSharpGuidelines that referenced this pull request Mar 22, 2021
…en#216)

Reasoning: the ICollection<T> interface actually allows one to modify
the collection, which goes against the intention of this guideline. The
reason for this exception was that versions of .NET Framework before 4.5 did not
include immutable collections.

Closes dennisdoomen#215
bkoelman pushed a commit to bkoelman/CSharpGuidelinesAnalyzer that referenced this pull request Feb 2, 2022
…changeable collection interfaces and types to be returned, except from private methods.
bkoelman pushed a commit to bkoelman/CSharpGuidelinesAnalyzer that referenced this pull request Feb 2, 2022
…changeable collection interfaces and types to be returned, except from private methods.
renamorales309 added a commit to renamorales309/Guidelines-Analyzer-CSharp that referenced this pull request Sep 23, 2022
…changeable collection interfaces and types to be returned, except from private methods.
brendasmith8 pushed a commit to brendasmith8/Guidelines-Analyzer-CSharp that referenced this pull request Oct 18, 2022
…changeable collection interfaces and types to be returned, except from private methods.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Change rule AV1130 (remove reference to .NET 4.5)
3 participants