public Output( XElement element, Extension <EvaluationContextResolver> context, OutputProperties properties) : base(element) { Contract.Requires <ArgumentNullException>(element != null); Contract.Requires <ArgumentNullException>(context != null); Contract.Requires <ArgumentNullException>(properties != null); this.properties = properties; this.context = context; this.value = new Lazy <Binding>(() => properties.Value != null ? new Binding(Element, context.Value.Context, properties.Value) : null); }
public Output( XElement element, Extension<EvaluationContextResolver> context, OutputProperties properties) : base(element) { Contract.Requires<ArgumentNullException>(element != null); Contract.Requires<ArgumentNullException>(context != null); Contract.Requires<ArgumentNullException>(properties != null); this.properties = properties; this.context = context; this.value = new Lazy<Binding>(() => properties.Value != null ? new Binding(Element, context.Value.Context, properties.Value) : null); }