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