CreateDefault() public static method

Create the default instance of CommandLine.Text.SentenceBuilder, localized in English.
public static CreateDefault ( ) : SentenceBuilder
return SentenceBuilder
コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CommandLine.Text.HelpText"/> class
 /// specifying heading string.
 /// </summary>
 /// <param name="heading">An heading string or an instance of <see cref="CommandLine.Text.HeadingInfo"/>.</param>
 /// <exception cref="System.ArgumentException">Thrown when parameter <paramref name="heading"/> is null or empty string.</exception>
 public HelpText(string heading)
     : this(SentenceBuilder.CreateDefault(), heading, string.Empty)
 {
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CommandLine.Text.HelpText"/> class
 /// specifying heading and copyright strings.
 /// </summary>
 /// <param name="heading">A string with heading or an instance of <see cref="CommandLine.Text.HeadingInfo"/>.</param>
 /// <param name="copyright">A string with copyright or an instance of <see cref="CommandLine.Text.CopyrightInfo"/>.</param>
 /// <exception cref="System.ArgumentNullException">Thrown when one or more parameters are null or empty strings.</exception>
 public HelpText(string heading, string copyright)
     : this(SentenceBuilder.CreateDefault(), heading, copyright)
 {
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CommandLine.Text.HelpText"/> class.
 /// </summary>
 public HelpText()
     : this(SentenceBuilder.CreateDefault(), string.Empty, string.Empty)
 {
 }