Beispiel #1
0
        public ItemValue(
            XElement element,
            ItemValueAttributes attributes,
            Extension <IBindingNode> bindingNode)
            : base(element)
        {
            Contract.Requires <ArgumentNullException>(element != null);
            Contract.Requires <ArgumentNullException>(attributes != null);
            Contract.Requires <ArgumentNullException>(bindingNode != null);

            this.attributes   = attributes;
            this.bindingNode  = bindingNode;
            this.valueBinding = new Lazy <Binding>(() => BindingUtil.ForAttribute(attributes.ValueAttribute));
        }
Beispiel #2
0
        public ItemValue(
            XElement element,
            ItemValueAttributes attributes,
            Extension<IBindingNode> bindingNode)
            : base(element)
        {
            Contract.Requires<ArgumentNullException>(element != null);
            Contract.Requires<ArgumentNullException>(attributes != null);
            Contract.Requires<ArgumentNullException>(bindingNode != null);

            this.attributes = attributes;
            this.bindingNode = bindingNode;
            this.valueBinding = new Lazy<Binding>(() => BindingUtil.ForAttribute(attributes.ValueAttribute));
        }