Esempio n. 1
0
    protected override object GetDataFromSource()
    {
        Dictionary <CryptocurrencyType, Cryptocurrency> data = new Dictionary <CryptocurrencyType, Cryptocurrency>();

        foreach (Type cryptocurrencyType in CryptocurrencyFactory.GetArrayOfSupportedTypes())
        {
            Cryptocurrency cryptocurrency = (Cryptocurrency)Activator.CreateInstance(cryptocurrencyType);
            data.Add(cryptocurrency.CryptocurrencyType, cryptocurrency);
        }

        return(data);
    }