Ejemplo n.º 1
0
        public static BakedDrawerChain Bake(this DrawerChain chain)
        {
            if (chain == null)
            {
                throw new ArgumentNullException("chain");
            }

            var baked = chain as BakedDrawerChain;

            if (baked != null)
            {
                baked.Rebake();
                return(baked);
            }
            else
            {
                return(new BakedDrawerChain(chain));
            }
        }
Ejemplo n.º 2
0
 public BakedDrawerChain(DrawerChain bakedChain)
     : base(bakedChain.Property)
 {
     this.BakedChain = bakedChain;
     this.Rebake();
 }