public HeaderValue( XElement element, HeaderValueAttributes 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.Value)); }
public HeaderValue( XElement element, HeaderValueAttributes 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.Value)); }