Esempio n. 1
0
        public virtual void Display()
        {
            foreach (object o in array)
            {
                Tradable test = o as Tradable;
                if (test != null)
                {
                    Console.WriteLine(test.symbol);
                }

                Futures test2 = o as Futures;
                if (test2 != null)
                {
                    Console.WriteLine("Futures underlying=" + test2.underlying);
                    Console.WriteLine("Theroratical Price=" + test2.TheoraticalPrice());
                }

                Option test3 = o as Option;
                if (test3 != null)
                {
                    Console.WriteLine("Option underlying=" + test3.underlying);
                    Console.WriteLine("Theroratical Price=" + test3.TheoraticalPrice());
                }
            }
        }
Esempio n. 2
0
 public void Add(Tradable t)
 {
 }
Esempio n. 3
0
 public void Add(Tradable t)
 {
     array.Add(t);
 }
Esempio n. 4
0
 public virtual void Add(Tradable t)
 {
 }