20 lines
602 B
C#
20 lines
602 B
C#
using System.Collections.Generic;
|
|
using Swarmops.Basic.Types.Financial;
|
|
|
|
namespace Swarmops.Logic.Financial
|
|
{
|
|
public class FinancialAccountRows : List<FinancialAccountRow>
|
|
{
|
|
public static FinancialAccountRows FromArray(BasicFinancialAccountRow[] array)
|
|
{
|
|
FinancialAccountRows result = new FinancialAccountRows {Capacity = (array.Length*11/10)};
|
|
|
|
foreach (BasicFinancialAccountRow basic in array)
|
|
{
|
|
result.Add(FinancialAccountRow.FromBasic(basic));
|
|
}
|
|
|
|
return result;
|
|
}
|
|
}
|
|
} |