init
This commit is contained in:
26
Ubung/GenTec.cs
Normal file
26
Ubung/GenTec.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user