public override bool CanCreate(string name, Type type) { return((type == typeof(IPriceSeriesDataSource) && RealFactory.CanCreate(name, typeof(IEnumerableDataSource <SimplePrice>))) || RealFactory.CanCreate(name, type)); }