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