1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 04:07:25 +08:00
osu-lazer/osu.Game/Utils/IDeepCloneable.cs
2022-06-17 16:37:17 +09:00

19 lines
641 B
C#

// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
#nullable disable
namespace osu.Game.Utils
{
/// <summary>A generic interface for a deeply cloneable type.</summary>
/// <typeparam name="T">The type of object to clone.</typeparam>
public interface IDeepCloneable<out T> where T : class
{
/// <summary>
/// Creates a new <typeparamref name="T" /> that is a deep copy of the current instance.
/// </summary>
/// <returns>The <typeparamref name="T" />.</returns>
T DeepClone();
}
}