28 lines
722 B
C#
28 lines
722 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Catamaran
|
|
{
|
|
internal class CatamaranCollectionInfo : IEquatable<CatamaranCollectionInfo>
|
|
{
|
|
public string Name { get; private set; }
|
|
public string Description { get; private set; }
|
|
public CatamaranCollectionInfo(string name, string description)
|
|
{
|
|
Name = name;
|
|
Description = description;
|
|
}
|
|
public bool Equals(CatamaranCollectionInfo? other)
|
|
{
|
|
return Name == other.Name;
|
|
}
|
|
public override int GetHashCode()
|
|
{
|
|
return this.Name.GetHashCode();
|
|
}
|
|
}
|
|
}
|