Exemplo n.º 1
0
        public TBuilder WithExample(string command, Action <ReplExampleBuilder>?configExample = null)
        {
            var exampleBuilder = new ReplExampleBuilder().WithCommand(command);

            configExample?.Invoke(exampleBuilder);
            examples.Add(exampleBuilder);
            return((TBuilder)this);
        }
Exemplo n.º 2
0
 public ReplExampleRuntime(ReplExampleBuilder builder)
 {
     this.Command     = builder.command;
     this.Caption     = builder.caption;
     this.Description = builder.description;
 }