public RibbonedHat(IHat hat)
 {
     this.Hat    = hat;
     Name        = "Ribboned";
     Price       = 1;
     Description = "";
 }
Ejemplo n.º 2
0
 public GoldenHat(IHat hat)
 {
     this.Hat    = hat;
     Name        = "Golden";
     Price       = 1;
     Description = "";
 }
Ejemplo n.º 3
0
        public MrPotatoHead(IHat hat, IArm leftArm, IArm rightArm)
        {
            this.hat  = hat;
            this.arms = new IArm[] { leftArm, rightArm };

            Console.WriteLine("I'm a new potato!");

            hat.Tip();
        }
Ejemplo n.º 4
0
        public IIHat Create(
            VariableCollection <ItIndexElement, IΛIndexElement> value)
        {
            IIHat variable = null;

            try
            {
                variable = new IHat(
                    value);
            }
            catch (Exception exception)
            {
                this.Log.Error("Exception message: " + exception.Message + " and stacktrace " + exception.StackTrace);
            }

            return(variable);
        }
Ejemplo n.º 5
0
        public IIHat Create(
            ImmutableList <IIHatResultElement> value)
        {
            IIHat result = null;

            try
            {
                result = new IHat(
                    value);
            }
            catch (Exception exception)
            {
                this.Log.Error("Exception message: " + exception.Message + " and stacktrace " + exception.StackTrace);
            }

            return(result);
        }
Ejemplo n.º 6
0
        public IIHat Create(
            ImmutableList <IIHatResultElement> value)
        {
            IIHat result = null;

            try
            {
                result = new IHat(
                    value);
            }
            catch (Exception exception)
            {
                this.Log.Error(
                    exception.Message,
                    exception);
            }

            return(result);
        }
Ejemplo n.º 7
0
        public IIHat Create(
            VariableCollection <ItIndexElement, IΛIndexElement> value)
        {
            IIHat variable = null;

            try
            {
                variable = new IHat(
                    value);
            }
            catch (Exception exception)
            {
                this.Log.Error(
                    exception.Message,
                    exception);
            }

            return(variable);
        }