Files
mROA/Example.Shared/IDataList.cs
T

18 lines
453 B
C#
Raw Normal View History

2025-03-06 14:10:52 +03:00
using System;
using System.Collections.Generic;
using mROA.Implementation;
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; }
T this[int index] { get; set; }
2025-03-06 14:10:52 +03:00
T Get(int index);
void Add(T item);
void Remove(int index, T item);
event Action<T> OnAdd;
event Action<T> OnRemove;
2025-03-06 14:10:52 +03:00
}
}