bro i can't even keep track anymore

This commit is contained in:
2023-03-27 09:17:06 +02:00
parent df33170f71
commit 311a5cc4ca
12 changed files with 248 additions and 131 deletions

View File

@@ -1,6 +1,8 @@
namespace Profiles
using System.Collections;
namespace Profiles
{
abstract class IList<T>
abstract class IList<T> : IEnumerable<T>
{
protected T[] list;
@@ -32,5 +34,15 @@
{
list = new T[0];
}
public IEnumerator<T> GetEnumerator()
{
return ((IEnumerable<T>)list).GetEnumerator();
}
IEnumerator IEnumerable.GetEnumerator()
{
return list.GetEnumerator();
}
}
}