示例#1
0
        public static ShelveBase CreateShelve(TypeShelves type)
        {
            if (!Factory.ContainsKey(type))
            {
                throw new ArgumentOutOfRangeException("typeShelves not existing");
            }

            Func <int, int> f  = ShelvesFactory.Fois2;
            Func <int, int> f2 = n => n * 2;

            return(Factory[type]());
        }
示例#2
0
 public ShelveBase(TypeShelves type)
 {
     Type = type;
 }