public static string newEndowmentFund([ExcelArgument(NAME_ARG_DESCRIPTION)] string name)
        {
            // TODO Excel function to create new Endowment Fund
            var fund = new EndowmentFund(name);

            return(ExcelObjectHelper.Register(name, fund));
        }
Пример #2
0
 public FundCollection(string name, string[] fundIds) : base(name)
 {
     if (fundIds == null || fundIds.Length <= 0)
     {
         throw new ArgumentNullException(nameof(fundIds));
     }
     _funds = fundIds.Select(id => ExcelObjectHelper.Get <EndowmentFund>(id)).ToArray();
 }