Skip to content

Instantly share code, notes, and snippets.

@caseywatson
Created December 25, 2012 15:23
Show Gist options
  • Select an option

  • Save caseywatson/4373710 to your computer and use it in GitHub Desktop.

Select an option

Save caseywatson/4373710 to your computer and use it in GitHub Desktop.
Merry Christmas Friends!
public void string SingChristmasCarol()
{
var carolBuilder = new StringBuilder();
carolBuilder.AppendLine("Tis the season to be jolly!");
carolBuilder.AppendLine(SingChorus());
carolBuilder.AppendLine("Deck the halls with boughs of holly!");
carolBuilder.AppendLine(SingChorus());
carolBuilder.AppendLine("Don we now our gay apparel!");
carolBuilder.AppendLine(SingChorus());
carolBuilder.AppendLine("Hark the heralds yuletide carol!");
carolBuilder.AppendLine(SingChorus());
return carolBuilder.ToString();
}
public void string SingChorus()
{
var chorusBuilder = new StringBuilder("Fa");
for (int i = 0; i < 9; i++)
{
chorusBuilder.Append(" la");
}
chorusBuilder.Append('!');
return chorusBuilder.ToString();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment