17 lines
415 B
C#
17 lines
415 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using mROA.Implementation;
|
|
|
|
namespace Example.Shared
|
|
{
|
|
public interface IDataList<T> : IShared, IDisposable
|
|
{
|
|
IReadOnlyList<T> Collection { get; }
|
|
T this[int index] { get; set; }
|
|
T Get(int index);
|
|
void Add(T item);
|
|
void Remove(int index, T item);
|
|
event Action<T> OnAdd;
|
|
event Action<T> OnRemove;
|
|
}
|
|
} |