Browse Source

covariant interface: IDeepCloneable<out T>

pull/707/head
Anton Firszov 8 years ago
parent
commit
329b4f72e8
  1. 4
      src/ImageSharp/IDeepCloneable.cs

4
src/ImageSharp/IDeepCloneable.cs

@ -7,8 +7,8 @@ namespace SixLabors.ImageSharp
/// A generic interface for a deeply cloneable type.
/// </summary>
/// <typeparam name="T">The type of object to clone.</typeparam>
public interface IDeepCloneable<T>
where T : class, IDeepCloneable<T>
public interface IDeepCloneable<out T>
where T : class
{
/// <summary>
/// Creates a new <typeparamref name="T"/> that is a deep copy of the current instance.

Loading…
Cancel
Save