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; }
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); }