Beispiel #1
0
 public ICollection<AvailableOutput> GetPortfolioNodeOutputs()
 {
     var ret = new HashSet<AvailableOutput>();
     foreach (var availableOutput in _outputsByValueName)
     {
         if (availableOutput.Value.PortfolioNodeProperties != null)
         {
             var output = new AvailableOutput(availableOutput.Key)
                              {PortfolioNodeProperties = availableOutput.Value.PortfolioNodeProperties};
             ret.Add(output);
         }
     }
     return ret;
 }
Beispiel #2
0
 public ICollection<AvailableOutput> GetPositionOutputs(string securityType)
 {
     var ret = new HashSet<AvailableOutput>();
     foreach (var availableOutput in _outputsByValueName)
     {
         ValueProperties props;
         if (availableOutput.Value.PositionProperties.TryGetValue(securityType, out props))
         {
             var output = new AvailableOutput(availableOutput.Key);
             output.PositionProperties.Add(securityType, props);
             ret.Add(output);
         }
     }
     return ret;
 }
        public ICollection <AvailableOutput> GetPositionOutputs(string securityType)
        {
            var ret = new HashSet <AvailableOutput>();

            foreach (var availableOutput in _outputsByValueName)
            {
                ValueProperties props;
                if (availableOutput.Value.PositionProperties.TryGetValue(securityType, out props))
                {
                    var output = new AvailableOutput(availableOutput.Key);
                    output.PositionProperties.Add(securityType, props);
                    ret.Add(output);
                }
            }
            return(ret);
        }
        public ICollection <AvailableOutput> GetPortfolioNodeOutputs()
        {
            var ret = new HashSet <AvailableOutput>();

            foreach (var availableOutput in _outputsByValueName)
            {
                if (availableOutput.Value.PortfolioNodeProperties != null)
                {
                    var output = new AvailableOutput(availableOutput.Key)
                    {
                        PortfolioNodeProperties = availableOutput.Value.PortfolioNodeProperties
                    };
                    ret.Add(output);
                }
            }
            return(ret);
        }