コード例 #1
0
        public MakeUpObject GetMakeUpFactoryObject(MakeUpObjectType name)
        {
            MakeUpObject mascara;

            if (!this.mackeUpList.TryGetValue(name, out mascara))
            {
                mascara = new MakeUpObject { Name = name, Price = this.Price(name) };

                this.mackeUpList.Add(name, mascara);
            }

            return mascara;
        }
コード例 #2
0
        public MakeUpObject GetMakeUpFactoryObject(MakeUpObjectType name)
        {
            MakeUpObject mascara;

            if (!this.mackeUpList.TryGetValue(name, out mascara))
            {
                mascara = new MakeUpObject {
                    Name = name, Price = this.Price(name)
                };

                this.mackeUpList.Add(name, mascara);
            }

            return(mascara);
        }