Files
csharp-uebung/Ubung/GenTecList.cs
2025-04-17 17:40:16 +02:00

22 lines
306 B
C#

namespace Ubung;
internal class GenTecList<T>
{
List<T> list = new List<T>();
public T GetValue(int index)
{
return list[index];
}
public void AddValue(T value)
{
list.Add(value);
}
public string GetType()
{
return typeof(T).Name;
}
}