コード例 #1
0
        public override Dictionary <string, string> GetDrinkInfo()
        {
            var drinkInfo = new Dictionary <string, string>
            {
                { "Name", Name },
                { "Cost", Cost.ToString() },
                { "Alcohol content", AlcoholContent.ToString() },
                { "Date of bottling", DateOfBottling.ToString() },
                { "Grape sort", GrapeSort },
                { "Vines age", VinesAge.ToString() },
                { "Bottle volume", Bottle.Volume.ToString() },
                { "Bottle color", Bottle.Color }
            };

            return(drinkInfo);
        }
コード例 #2
0
        public override Dictionary <string, string> GetDrinkInfo()
        {
            var drinkInfo = new Dictionary <string, string>
            {
                { "Name", Name },
                { "Cost", Cost.ToString() },
                { "Alcohol content", AlcoholContent.ToString() },
                { "Date of bottling", DateOfBottling.ToString() },
                { "Class", Class },
                { "Barrel material", BarrelMaterial },
                { "Bottle volume", Bottle.Volume.ToString() },
                { "Bottle color", Bottle.Color }
            };

            return(drinkInfo);
        }