PIbd-23_Starostin_I.K._Lain.../lainer/Lainer1/LainersCollectionInfo.cs

22 lines
617 B
C#
Raw Normal View History

2023-12-22 19:05:09 +04:00
namespace ProjectLainer.Generics
{
internal class LainersCollectionInfo : IEquatable<LainersCollectionInfo>
{
public string Name { get; private set; }
public string Description { get; private set; }
public LainersCollectionInfo(string name, string description)
{
Name = name;
Description = description;
}
public bool Equals(LainersCollectionInfo? other)
{
if(other!= null)
{
return this.Name == other.Name;
}
return false;
}
}
}