31 lines
758 B
C#
31 lines
758 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Liner.Generics
|
|
{
|
|
public class LinerCollectionInfo : IEquatable<LinerCollectionInfo>
|
|
{
|
|
public string Name { get; private set; }
|
|
public string Description { get; private set; }
|
|
public LinerCollectionInfo(string name, string description)
|
|
{
|
|
Name = name;
|
|
Description = description;
|
|
}
|
|
public bool Equals(LinerCollectionInfo? other)
|
|
{
|
|
if (Name == other?.Name)
|
|
return true;
|
|
|
|
return false;
|
|
}
|
|
public override int GetHashCode()
|
|
{
|
|
return Name.GetHashCode();
|
|
}
|
|
}
|
|
}
|