protected IEnumerable <BlaResultRow> _HeaderEnum(string nvalue, byte entityID, Blasewitz.Bla_RowMode rowmode) { return(Enumerable.Repeat( new BlaResultRow { Content = "$" + Blasewitz.ToString(rowmode) + nvalue, EntityID = entityID, OrdNum = -1 }, 1)); }
public override IEnumerable <BlaResultRow> PourResults() { if ((_phs.Attributies.Definitions?.Count ?? 0) == 0) { return(_ReturnEmpty()); } return(_HeaderEnum(__HEADER, EntityID, _WorkMode() == Blasewitz.Bla_WorkMode.TraFile ? Blasewitz.Bla_RowMode.Add : Blasewitz.Bla_RowMode.Null) .Concat( _phs.Attributies.Definitions.UserDefined.Select((y, ix) => new BlaResultRow { Content = Blasewitz.ToString(_WorkMode() == Blasewitz.Bla_WorkMode.TraFile ? Blasewitz.Bla_RowMode.Add : Blasewitz.Bla_RowMode.Null) + y.VisumDefinition, EntityID = EntityID, OrdNum = ix }))); }