SweetLib/SweetLib.Storage/IIdentified.cs

20 lines
508 B
C#
Raw Normal View History

2022-11-15 22:12:50 +01:00
namespace SweetLib.Storage
{
/// <summary>
/// Interface for identified objects.
/// </summary>
/// <typeparam name="T">Type of the identifier.</typeparam>
public interface IIdentified<T>
{
/// <summary>
/// Identifier of the object.
/// </summary>
T Id { get; set; }
/// <summary>
/// Gets a dummy Id for unidentified instances;
/// </summary>
/// <returns></returns>
T UnidentifiedId();
}
}