コード例 #1
0
ファイル: PbTickCodec.cs プロジェクト: xxy2016/QuantBox.Data
        public PbTickView Data2View(PbTick tick, bool descending)
        {
            if (tick == null)
            {
                return(null);
            }
            var converter = new Int2DoubleConverter();

            return(converter.Int2Double(tick, descending));
        }
コード例 #2
0
ファイル: PbTickCodec.cs プロジェクト: xxy2016/QuantBox.Data
        public List <PbTickView> Data2View(IEnumerable <PbTick> ticks, bool descending)
        {
            if (ticks == null)
            {
                return(null);
            }

            var converter = new Int2DoubleConverter();
            var views     = new List <PbTickView>();

            foreach (var tick in ticks)
            {
                views.Add(converter.Int2Double(tick, descending));
            }
            return(views);
        }
コード例 #3
0
ファイル: PbTickCodec.cs プロジェクト: kandsy/QuantBox.Data
 public PbTickView Data2View(PbTick tick, bool descending)
 {
     if (tick == null)
         return null;
     var converter = new Int2DoubleConverter();
     return converter.Int2Double(tick, descending);
 }
コード例 #4
0
ファイル: PbTickCodec.cs プロジェクト: kandsy/QuantBox.Data
        public List<PbTickView> Data2View(IEnumerable<PbTick> ticks, bool descending)
        {
            if (ticks == null)
                return null;

            var converter = new Int2DoubleConverter();
            var views = new List<PbTickView>();

            foreach (var tick in ticks) {
                views.Add(converter.Int2Double(tick, descending));
            }
            return views;
        }