Exemplo n.º 1
0
        public static Fund TryAsFund(this ISecurity security)
        {
            var resolver = new TryAsFund_ISecurityResolver();

            security.Accept(resolver);
            return(resolver.FundOpt);
        }
Exemplo n.º 2
0
        public static CompanySecurity TryAsCompanySecurity(this ISecurity security)
        {
            var resolver = new TryAsFund_ISecurityResolver();

            security.Accept(resolver);
            return(resolver.StockOpt);
        }