Klimi's new dotfiles with stow.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
808 B

5 years ago
  1. # -*- mode: snippet -*-
  2. # contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
  3. # name: private _attribute ....; public Property ... ... { ... }
  4. # key: attrib
  5. # --
  6. /// <summary>
  7. /// $3
  8. /// </summary>
  9. private $1 ${2:$(if (> (length yas-text) 0) (format "_%s%s" (downcase (substring yas-text 0 1)) (substring yas-text 1 (length yas-text))) "")};
  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. }