Skip to content

Instantly share code, notes, and snippets.

@dannylloyd
Created January 29, 2016 19:34
Show Gist options
  • Select an option

  • Save dannylloyd/cdefad8a6f03daf038c1 to your computer and use it in GitHub Desktop.

Select an option

Save dannylloyd/cdefad8a6f03daf038c1 to your computer and use it in GitHub Desktop.
Razor xml comment format. Add descriptive comment to method
@functions{
/// <summary>
/// Prints a random number followed by name
/// </summary>
/// <param name="name">The name to be printed</param>
}
@helper SayHello(string name) {
int randomNumber = 4; // A random number
@randomNumber @name
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment