# -*- mode: snippet -*- # contributor : Alejandro Espinoza Esparza # name: private _attribute ....; public Property ... ... { ... } # key: attrib # -- /// /// $3 /// private $1 ${2:$(if (> (length yas-text) 0) (format "_%s%s" (downcase (substring yas-text 0 1)) (substring yas-text 1 (length yas-text))) "")}; /// /// ${3:Description} /// /// $1 public ${1:Type} ${2:Name} { get { return this.${2:$(if (> (length yas-text) 0) (format "_%s%s" (downcase (substring yas-text 0 1)) (substring yas-text 1 (length yas-text))) "")}; } set { this.${2:$(if (> (length yas-text) 0) (format "_%s%s" (downcase (substring yas-text 0 1)) (substring yas-text 1 (length yas-text))) "")} = value; } }