2024-04-15 00:21:36 +04:00
|
|
|
|
namespace ProjectSeaplane.CollectionGenericObjects;
|
|
|
|
|
|
|
|
|
|
public interface ICollectionGenericObjects<T>
|
|
|
|
|
where T : class
|
|
|
|
|
{
|
|
|
|
|
int Count { get; }
|
|
|
|
|
|
2024-04-29 03:25:45 +04:00
|
|
|
|
int MaxCount { set; get; }
|
2024-04-15 00:21:36 +04:00
|
|
|
|
|
|
|
|
|
int Insert(T obj);
|
|
|
|
|
|
|
|
|
|
int Insert(T obj, int position);
|
|
|
|
|
|
|
|
|
|
T Remove(int position);
|
|
|
|
|
|
|
|
|
|
T? Get(int position);
|
2024-04-29 03:25:45 +04:00
|
|
|
|
|
|
|
|
|
CollectionType GetCollectionType { get; }
|
|
|
|
|
|
|
|
|
|
IEnumerable<T?> GetItems();
|
2024-04-15 00:21:36 +04:00
|
|
|
|
}
|