Beispiel #1
0
        private static IEnumerator <RantAction> Quote(Sandbox sb,
                                                      [RantDescription("The pattern to run whose output will be surrounded in quotes.")]
                                                      RantAction quoteAction)
        {
            sb.IncreaseQuote();
            sb.PrintOpeningQuote();
            yield return(quoteAction);

            sb.PrintClosingQuote();
            sb.DecreaseQuote();
        }
Beispiel #2
0
 private static IEnumerator<RantAction> Quote(Sandbox sb,
     [RantDescription("The pattern to run whose output will be surrounded in quotes.")]
     RantAction quoteAction)
 {
     sb.IncreaseQuote();
     sb.PrintOpeningQuote();
     yield return quoteAction;
     sb.PrintClosingQuote();
     sb.DecreaseQuote();
 }