lotsa changes and inclusion of elpy
[emacs.git] / .emacs.d / elisp / yasnippet / snippets / csharp-mode / attrib.2
1 #contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
2 #name : private _attribute ....; public Property ... ... { ... }
3 # key: attrib
4 # --
5 /// <summary>
6 /// $3
7 /// </summary>
8 private $1 ${2:$(if (> (length yas-text) 0) (format "_%s%s" (downcase (substring yas-text 0 1)) (substring yas-text 1 (length yas-text))) "")};
9
10 /// <summary>
11 /// ${3:Description}
12 /// </summary>
13 /// <value><c>$1</c></value>
14 public ${1:Type} ${2:Name}
15 {
16 get {
17 return this.${2:$(if (> (length yas-text) 0) (format "_%s%s" (downcase (substring yas-text 0 1)) (substring yas-text 1 (length yas-text))) "")};
18 }
19 set {
20 this.${2:$(if (> (length yas-text) 0) (format "_%s%s" (downcase (substring yas-text 0 1)) (substring yas-text 1 (length yas-text))) "")} = value;
21 }
22 }