Skip to content

Commit

Permalink
Add ICloneable back to System.Runtime contract
Browse files Browse the repository at this point in the history
We've got a bunch of types outside of mscorlib that implement this interface in desktop, and the lack of it is causing issues, e.g.  https://github.com/dotnet/corefx/issues/9884.  This commit adds the interface to the contract; when we subsequently update the packages, then we can start implementing this in types outside of System.Runtime (since System.Runtime is mostly a facade on System.Private.Corelib, the types it "contains" already implement the interface).
  • Loading branch information
stephentoub committed Jul 11, 2016
1 parent 64673e3 commit fb00685
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/System.Runtime/ref/System.Runtime.cs
Original file line number Diff line number Diff line change
Expand Up @@ -954,6 +954,10 @@ public partial interface IAsyncResult
bool CompletedSynchronously { get; }
bool IsCompleted { get; }
}
public partial interface ICloneable
{
object Clone();
}
public partial interface IComparable
{
int CompareTo(object obj);
Expand Down

0 comments on commit fb00685

Please sign in to comment.