示例#1
0
        public CallForSpeechBuilder WithCategory(
            Action <CategoryBuilder> categoryBuilderAction)
        {
            var categoryBuilder = new CategoryBuilder();

            categoryBuilderAction(categoryBuilder);
            category = categoryBuilder.Build();
            return(this);
        }
示例#2
0
        public JudgeBuilder WithCategory(
            Action <CategoryBuilder> categoryBuilderAction)
        {
            var categoryBuilder = new CategoryBuilder();

            categoryBuilderAction(categoryBuilder);
            category = categoryBuilder.Build();
            return(this);
        }