Skip to content

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

Merged
dennisdoomen merged 1 commit into
dennisdoomen:masterfrom
maikelsteneker:master
Aug 17, 2020
Merged

Remove ICollection<T> as an allowed interface from AV1130#216
dennisdoomen merged 1 commit into
dennisdoomen:masterfrom
maikelsteneker:master

Conversation

@maikelsteneker
Copy link
Copy Markdown
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
Copy Markdown
Owner

Waiting for @bkoelman's approval

@bkoelman
Copy link
Copy Markdown
Contributor

Looks good to me, thanks.

@dennisdoomen dennisdoomen merged commit 0ed6483 into dennisdoomen:master Aug 17, 2020
@dennisdoomen
Copy link
Copy Markdown
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