30 lines
703 B
C#
30 lines
703 B
C#
|
namespace ProjectBulldozer.Generics
|
|||
|
{
|
|||
|
internal class TractorsCollectionInfo : IEquatable<TractorsCollectionInfo>
|
|||
|
{
|
|||
|
public string Name { get; private set; }
|
|||
|
|
|||
|
public string Description { get; private set; }
|
|||
|
|
|||
|
public TractorsCollectionInfo(string name, string description)
|
|||
|
{
|
|||
|
Name = name;
|
|||
|
Description = description;
|
|||
|
}
|
|||
|
|
|||
|
public bool Equals(TractorsCollectionInfo? other)
|
|||
|
{
|
|||
|
return Name == other.Name;
|
|||
|
}
|
|||
|
|
|||
|
public override int GetHashCode()
|
|||
|
{
|
|||
|
return Name.GetHashCode();
|
|||
|
}
|
|||
|
public override string ToString()
|
|||
|
{
|
|||
|
return Name;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|