コード例 #1
0
            protected CsvEntityList(CsvEntityRegistry registry, string fileName, Encoding encoding)
            {
                if (registry == null)
                {
                    throw new ArgumentNullException(nameof(registry));
                }

                if (fileName == null)
                {
                    throw new ArgumentNullException(nameof(fileName));
                }

                if (encoding == null)
                {
                    throw new ArgumentNullException(nameof(encoding));
                }

                Registry = registry;

                _fileName = System.IO.Path.Combine(Registry.Path, fileName);
                _encoding = encoding;

                ReadItems();
            }
コード例 #2
0
 public PositionCsvList(CsvEntityRegistry registry)
     : base(registry, "position.csv", Encoding.UTF8)
 {
 }
コード例 #3
0
 public PortfolioCsvList(CsvEntityRegistry registry)
     : base(registry, "portfolio.csv", Encoding.UTF8)
 {
 }
コード例 #4
0
 public SecurityCsvList(CsvEntityRegistry registry)
     : base(registry, "security.csv", Encoding.UTF8)
 {
     ((ICollectionEx <Security>) this).AddedRange   += s => _added?.Invoke(s);
     ((ICollectionEx <Security>) this).RemovedRange += s => _removed?.Invoke(s);
 }
コード例 #5
0
 public ExchangeBoardCsvList(CsvEntityRegistry registry)
     : base(registry, "exchangeboard.csv", Encoding.UTF8)
 {
 }