Emacs config utilizing prelude as a base
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.

21 lines
735 B

  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 text) 0) (format "_%s%s" (downcase (substring text 0 1)) (substring text 1 (length text))) "")};
  9. /// <summary>
  10. /// ${3:Description}
  11. /// </summary>
  12. /// <value><c>$1</c></value>
  13. public ${1:Type} ${2:Name}
  14. {
  15. get {
  16. return this.${2:$(if (> (length text) 0) (format "_%s%s" (downcase (substring text 0 1)) (substring text 1 (length text))) "")};
  17. }
  18. set {
  19. this.${2:$(if (> (length text) 0) (format "_%s%s" (downcase (substring text 0 1)) (substring text 1 (length text))) "")} = value;
  20. }
  21. }