/// <summary>
 /// A custom layout supplied by a builder function.
 /// </summary>
 public static ParameterLayout Custom(ParameterLayoutBuilder builder) => new CustomParameterLayout(builder);
示例#2
0
 /// <summary>
 /// Creates a new <see cref="Signature"/> just like this one, but with a custom function that
 /// builds a list of parameter associated with each argument.
 /// </summary>
 public Signature WithLayout(ParameterLayoutBuilder customBuilder)
 {
     return(WithLayout(ParameterLayouts.Custom(customBuilder)));
 }
 public CustomParameterLayout(ParameterLayoutBuilder builder)
 {
     _builder = builder;
 }