using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Text; using System.Threading.Tasks; using Lab.DrawningObjects; using Lab.Generics; namespace Lab { internal class TankerCollectionInfo : IEquatable { public string Name { get; private set; } public string Description { get; private set; } public TankerCollectionInfo(string name, string description) { Name = name; Description = description; } public bool Equals(TankerCollectionInfo? 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; } } }