yasnippet-snippets/snippets/csharp-mode/method

12 lines
360 B
Plaintext
Raw Normal View History

2019-03-09 19:35:58 +01:00
# -*- mode: snippet -*-
2019-03-09 10:42:25 +01:00
# contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
# name: public void Method { ... }
# key: method
# --
/// <summary>
/// ${5:Description}
/// </summary>${2:$(if (string= (upcase yas-text) "VOID") "" (format "%s%s%s" "\n/// <returns><c>" yas-text "</c></returns>"))}
${1:public} ${2:void} ${3:MethodName}($4)
{
$0
}