Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }