示例#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);
        }
示例#2
0
        /// <summary>
        /// Creates a binding builder that builds the source of the pattern element.
        /// </summary>
        /// <returns>Binding builder.</returns>
        public BindingBuilder Binding()
        {
            var builder = new BindingBuilder();

            builder.ResultType(Declaration.Type);
            _sourceBuilder = builder;
            return(builder);
        }
示例#3
0
 /// <summary>
 /// Sets a binding builder as the source of the pattern element.
 /// </summary>
 /// <param name="builder">Element builder to set as the source.</param>
 public void Binding(BindingBuilder builder)
 {
     AssertSingleSource();
     builder.ResultType(Declaration.Type);
     _sourceBuilder = builder;
 }