Skip to content

Remove CreateDefensiveCopy and inline it in ImmutableArray.Create#32386

Merged
jkotas merged 1 commit intodotnet:masterfrom
Therzok:immutable-array-inline
Feb 16, 2020
Merged

Remove CreateDefensiveCopy and inline it in ImmutableArray.Create#32386
jkotas merged 1 commit intodotnet:masterfrom
Therzok:immutable-array-inline

Conversation

@Therzok
Copy link
Contributor

@Therzok Therzok commented Feb 16, 2020

No description provided.

@jkotas
Copy link
Member

jkotas commented Feb 16, 2020

Build error:

System/Collections/Immutable/ImmutableArray.cs(159,24): error CS8604: Possible null reference argument for parameter 'sourceArray' in 'void Array.Copy(Array sourceArray, Array destinationArray, int length)'. [/Users/runner/runners/2.164.8/work/1/s/src/libraries/System.Collections.Immutable/src/System.Collections.Immutable.csproj]

@Therzok Therzok force-pushed the immutable-array-inline branch from 1f83e7b to 3d9fa63 Compare February 16, 2020 08:34
@jkotas jkotas merged commit 9cba68e into dotnet:master Feb 16, 2020
@Therzok Therzok deleted the immutable-array-inline branch February 16, 2020 11:41
@ghost ghost locked as resolved and limited conversation to collaborators Dec 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants