Esempio n. 1
0
        private static bool TryParseAsset(DateTime date, string[] args, out IFixing asset)
        {
            Currency currency   = null;
            bool     validAsset = args.Length == 2 && Currency.TryParse(args[1], out currency);

            if (!validAsset)
            {
                asset = null;
                return(false);
            }

            var assetId = new AssetId(args[0], currency);

            asset = new EquitySpot(date, assetId);
            return(true);
        }
Esempio n. 2
0
 protected bool Equals(EquitySpot other)
 {
     return(Equals(AssetId, other.AssetId) && Date.Equals(other.Date));
 }