public OutputProperties( XElement element, OutputAttributes attributes, Extension <EvaluationContextResolver> context) : base(element) { Contract.Requires <ArgumentNullException>(element != null); Contract.Requires <ArgumentNullException>(context != null); this.attributes = attributes; this.context = context; this.value = new Lazy <XPathExpression>(() => !string.IsNullOrEmpty(attributes.Value) ? context.Value.Context.CompileXPath(element, attributes.Value) : null); }
public OutputProperties( XElement element, OutputAttributes attributes, Extension<EvaluationContextResolver> context) : base(element) { Contract.Requires<ArgumentNullException>(element != null); Contract.Requires<ArgumentNullException>(context != null); this.attributes = attributes; this.context = context; this.value = new Lazy<XPathExpression>(() => !string.IsNullOrEmpty(attributes.Value) ? context.Value.Context.CompileXPath(element, attributes.Value) : null); }