ToString() публичный Метод

Generates the arguments.
public ToString ( StringBuilder b ) : StringBuilder
b StringBuilder The string builder.
Результат StringBuilder
Пример #1
0
 /// <summary>
 /// Runs dnu restore.
 /// </summary>
 /// <param name="context">This cake context.</param>
 /// <param name="config">The configuration to use.</param>
 public static void DNURestore( this ICakeContext context, Action<DNURestoreSettings> config )
 {
     var c = new DNURestoreSettings();
     config( c );
     var b = new StringBuilder();
     b.Append( "dnu " );
     c.ToString( b );
     RunCmdAliases.RunCmdSuccessful( context, b.ToString() );
 }
Пример #2
0
        /// <summary>
        /// Runs dnu restore.
        /// </summary>
        /// <param name="context">This cake context.</param>
        /// <param name="config">The configuration to use.</param>
        public static void DNURestore(this ICakeContext context, Action <DNURestoreSettings> config)
        {
            var c = new DNURestoreSettings();

            config(c);
            var b = new StringBuilder();

            b.Append("dnu ");
            c.ToString(b);
            RunSuccessfullCmd(context, b.ToString());
        }