Split ContractsBCL into separate classes and move them to shared CoreLib (#22006)
commit292c674043d9b319c92c2c2a82e245539eec7081
authorFilip Navara <filip.navara@gmail.com>
Thu, 17 Jan 2019 21:48:17 +0000 (17 22:48 +0100)
committerMarek Safar <marek.safar@gmail.com>
Fri, 18 Jan 2019 14:36:44 +0000 (18 15:36 +0100)
treedab0aba989b43bcfc647343a3305ac32627de2c7
parent1c4a35efc3b536a9a0e2726a67fd1d56baa590e2
Split ContractsBCL into separate classes and move them to shared CoreLib (#22006)

* Split up ContractsBCL into separate classes.

* Move remaining Contract, ContractHelper code to shared partition.

* Split ContractHelper to allow custom debugging experience in CoreRT.

* Simplify ContractHelper.InternalContractFailed.

* Use resource loading code from CoreRT.

* Remove unused parameter.

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
netcore/System.Private.CoreLib/shared/System.Private.CoreLib.Shared.projitems
netcore/System.Private.CoreLib/shared/System/Diagnostics/Contracts/ContractException.cs [new file with mode: 0644]
netcore/System.Private.CoreLib/shared/System/Diagnostics/Contracts/ContractFailedEventArgs.cs [new file with mode: 0644]
netcore/System.Private.CoreLib/shared/System/Diagnostics/Contracts/Contracts.cs
netcore/System.Private.CoreLib/shared/System/Diagnostics/Debug.cs
netcore/System.Private.CoreLib/shared/System/HResults.cs
netcore/System.Private.CoreLib/shared/System/Runtime/CompilerServices/ContractHelper.cs [new file with mode: 0644]