Repository navigation
Remove all usages of CONTRACTS_FULL from mscorlib - #5454
Conversation
|
@dotnet-bot test this please |
|
Thanks for cleaning this up! |
|
@jamesqo Would you mind porting this change to CoreRT as well? |
|
@jkotas Sure, no problem 😀 Will probably do this tomorrow, since I'm a bit pressed for time atm. |
There was a problem hiding this comment.
I'm curious, should this not have been made private instead?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
* 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
Fixes #5437. Reduces the size of the .cs files by over 1,000 LOC.
cc: @jkotas @AlexGhiondea