27 lines
388 B
C#
27 lines
388 B
C#
namespace Ubung;
|
|
|
|
internal class GenTec<T>
|
|
{
|
|
private T[] values;
|
|
|
|
public GenTec(int groesse)
|
|
{
|
|
values = new T[groesse];
|
|
}
|
|
|
|
public T GetValue(int index)
|
|
{
|
|
return values[index];
|
|
}
|
|
|
|
public void SetValue(int index, T value)
|
|
{
|
|
values[index] = value;
|
|
}
|
|
|
|
public string GetType()
|
|
{
|
|
return typeof(T).Name;
|
|
}
|
|
}
|