Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Remove all usages of CONTRACTS_FULL from mscorlib - #5454

Merged
jkotas merged 13 commits into
dotnet:masterfrom
jamesqo:contracts-full
Jun 4, 2016
Merged

jkotas merged 13 commits into
dotnet:masterfrom
jamesqo:contracts-full

Conversation

@jamesqo

@jamesqo jamesqo commented Jun 3, 2016

Copy link
Copy Markdown

Fixes #5437. Reduces the size of the .cs files by over 1,000 LOC.

cc: @jkotas @AlexGhiondea

@jamesqo

jamesqo commented Jun 4, 2016

Copy link
Copy Markdown
Author

@dotnet-bot test this please

@AlexGhiondea

Copy link
Copy Markdown

Thanks for cleaning this up!

@jkotas
jkotas merged commit 1fa75e7 into dotnet:master Jun 4, 2016
@jamesqo
jamesqo deleted the contracts-full branch June 4, 2016 12:54
@jkotas

jkotas commented Jun 6, 2016

Copy link
Copy Markdown
Member

@jamesqo Would you mind porting this change to CoreRT as well?

@jamesqo

jamesqo commented Jun 7, 2016

Copy link
Copy Markdown
Author

@jkotas Sure, no problem 😀 Will probably do this tomorrow, since I'm a bit pressed for time atm.

Comment thread src/mscorlib/src/System/Array.cs Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm curious, should this not have been made private instead?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Whoops, I think you're right. However, for any new APIs to be exposed from mscorlib they have to be exposed from this file, otherwise they're automatically stripped out of the assembly by the build tools. So either way I don't think it makes a difference, since it's not listed there/isn't exposed in the contracts.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It should be internal as before (for full framework - where the trimming does not apply). I have added it back, with the same comment as what is in CoreRT.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

#5573

@JanielS Good catch!

jkotas pushed a commit to dotnet/corert that referenced this pull request Jun 7, 2016
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
* Remove CONTRACTS_FULL from Array
* Remove CONTRACTS_FULL from ArraySortHelper
* Remove CONTRACTS_FULL from ICollection
* Remove CONTRACTS_FULL from IDictionary
* Remove CONTRACTS_FULL from IEnumerable
* Remove CONTRACTS_FULL from IList
* Remove CONTRACTS_FULL from IReadOnlyCollection
* Remove CONTRACTS_FULL from IReadOnlyDictionary
* Remove CONTRACTS_FULL from IReadOnlyList
* Remove CONTRACTS_FULL from the nongeneric collections
* Remove CONTRACTS_FULL from IConvertible and IFormattable
* Remove CONTRACTS_FULL from System.IO
* Remove CONTRACTS_FULL from System.Reflection

Commit migrated from dotnet/coreclr@1fa75e7
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.

5 participants