コード例 #1
0
ファイル: MarketInfo.cs プロジェクト: stepinto163/Qdp
        private void GetTreeClassifiedDefinitions(MarketDataDefinition root, out MarketDataDefinition[] rawDefinitions,
                                                  out MarketDataDefinition[] ripeDefinitions)
        {
            var rawDefs  = new List <MarketDataDefinition>();
            var ripeDefs = new List <MarketDataDefinition>();

            foreach (var marketDataDefinition in root.GetDependencies())
            {
                MarketDataDefinition[] childrenRaw;
                MarketDataDefinition[] childrenRipe;
                GetTreeClassifiedDefinitions(marketDataDefinition, out childrenRaw, out childrenRipe);
                rawDefs.AddRange(childrenRaw);
                ripeDefs.AddRange(childrenRipe);
                if (marketDataDefinition.GetDependencies().Length == 0)
                {
                    rawDefs.Add(marketDataDefinition);
                }
                else
                {
                    ripeDefs.Add(marketDataDefinition);
                }
            }
            rawDefinitions  = rawDefs.ToArray();
            ripeDefinitions = ripeDefs.ToArray();
        }
コード例 #2
0
 public virtual void RemoveDependencies(MarketDataDefinition mergeData)
 {
 }