Exemple #1
0
        public DataRecord AsDataRecord()
        {
            DataRecord dr = new DataRecord();

            //PE Ratio
            if (PriceEarningsRatio.HasValue)
            {
                dr.AddAttribute("PriceEarningsRatio", PriceEarningsRatio.Value.ToString());
            }
            else
            {
                dr.AddAttribute("PriceEarningsRatio", "5000"); //Default PE ratio is 5,000 (i.e. if they are not profitable)
            }

            //

            return(dr);
        }