Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

Re-generate System.Collections.Immutable ref assembly and fix a param name #38264

Merged
merged 2 commits into from
Jun 17, 2019

Conversation

safern
Copy link
Member

@safern safern commented Jun 5, 2019

Fixes: https://github.com/dotnet/corefx/issues/38110

Picked to preserve source as the param name since that is what we use in other APIs, so I wanted to be consistent.

cc: @stephentoub @ahsonkhan @danmosemsft

@safern safern force-pushed the NormalizeSystemCollectionsImmutable branch from 13ec5f2 to b794c56 Compare June 12, 2019 22:31
@safern
Copy link
Member Author

safern commented Jun 13, 2019

This is ready to be merged. PTAL

@safern safern requested a review from ericstj June 14, 2019 16:20
@@ -96,7 +96,7 @@ public static partial class ImmutableArray
}
public partial struct ImmutableArray<T> : System.Collections.Generic.ICollection<T>, System.Collections.Generic.IEnumerable<T>, System.Collections.Generic.IList<T>, System.Collections.Generic.IReadOnlyCollection<T>, System.Collections.Generic.IReadOnlyList<T>, System.Collections.ICollection, System.Collections.IEnumerable, System.Collections.IList, System.Collections.Immutable.IImmutableList<T>, System.Collections.IStructuralComparable, System.Collections.IStructuralEquatable, System.IEquatable<System.Collections.Immutable.ImmutableArray<T>>
{
internal T[] array;
private T[] array;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question: How do we know this is the right change (internal -> private)?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It shouldn't make a difference in the struct layout, rather than just not being accessible to anything from within the assembly. cc: @jkotas @ericstj do you guys know if this change is correct?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fine, as long as it is what GenAPI generates.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the ref doesn't have an [InternalsVisibleTo] there shouldn't be any observable difference in those access levels.

@safern safern merged commit 2e6661d into dotnet:master Jun 17, 2019
@safern safern deleted the NormalizeSystemCollectionsImmutable branch June 17, 2019 16:12
@karelz karelz added this to the 3.0 milestone Jul 16, 2019
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
… name (dotnet/corefx#38264)

* Re-generate System.Collections.Immutable ref assembly and fix a param name

* Use builder as the param name instead


Commit migrated from dotnet/corefx@2e6661d
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Parameter name different in reference and impementation
7 participants