2025-03-06 14:10:52 +03:00
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using mROA.Implementation;
|
2025-03-01 15:11:11 +03:00
|
|
|
using mROA.Implementation.Attributes;
|
|
|
|
|
|
|
|
|
|
namespace Example.Shared
|
|
|
|
|
{
|
2025-03-06 14:10:52 +03:00
|
|
|
public interface IDataList<T> : IShared, IDisposable
|
|
|
|
|
{
|
|
|
|
|
IReadOnlyList<T> Collection { get; }
|
2025-03-07 15:46:22 +03:00
|
|
|
T this[int index] { get; set; }
|
2025-03-06 14:10:52 +03:00
|
|
|
T Get(int index);
|
|
|
|
|
void Add(T item);
|
2025-03-07 09:01:21 +03:00
|
|
|
void Remove(int index, T item);
|
|
|
|
|
event Action<T> OnAdd;
|
|
|
|
|
event Action<T> OnRemove;
|
2025-03-06 14:10:52 +03:00
|
|
|
}
|
2025-03-01 15:11:11 +03:00
|
|
|
}
|