Exemple #1
0
        /// <summary>
        /// Creates a binding builder that builds the source of the pattern.
        /// </summary>
        /// <returns>Binding builder.</returns>
        public BindingBuilder Binding()
        {
            var builder = new BindingBuilder(Scope, Declaration.Type);

            _sourceBuilder = builder;
            return(builder);
        }
Exemple #2
0
        /// <summary>
        /// Creates an aggregate builder that builds the source of the pattern.
        /// </summary>
        /// <returns>Aggregate builder.</returns>
        public AggregateBuilder Aggregate()
        {
            AssertSingleSource();
            var builder = new AggregateBuilder(Declaration.Type, Scope);

            _sourceBuilder = builder;
            return(builder);
        }