37 lines
892 B
C#
37 lines
892 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Dakota
|
|
{
|
|
internal class Datenelementgruppe : Dateneinheit
|
|
{
|
|
public Datenelement[] Datenelemente { get; set; }
|
|
|
|
public Datenelementgruppe(int count)
|
|
{
|
|
if (count < 2)
|
|
throw new ArgumentOutOfRangeException("#37493218741616891269821");
|
|
|
|
Datenelemente = new Datenelement[count];
|
|
}
|
|
|
|
public void SetValue(int loc, string val)
|
|
{
|
|
Datenelemente[loc].Value = val;
|
|
}
|
|
|
|
public string GetValue(int loc)
|
|
{
|
|
return Datenelemente[loc].GetValue();
|
|
}
|
|
|
|
public override string GetValue()
|
|
{
|
|
return string.Join(DakotaConfig.TrennzeichenInnerhalb, Datenelemente.Select(x => x.GetValue()));
|
|
}
|
|
}
|
|
}
|