26 lines
569 B
C#

using ProjectPlane.Drawnings;
namespace ProjectPlane.CollectionGenericObjects;
public interface ICollectionGenericObjects<T>
where T : class
{
int Count { get; }
int MaxCount { get; set; }
int Insert(T obj, IEqualityComparer<DrawningShip?>? comparer = null);
int Insert(T obj, int position, IEqualityComparer<DrawningShip?>? comparer = null);
T? Remove(int position);
T? Get(int position);
CollectionType GetCollectionType { get; }
IEnumerable<T?> GetItems();
void CollectionSort(IComparer<T?> comparer);
}