summaryrefslogtreecommitdiff
path: root/.emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/attrib.2
diff options
context:
space:
mode:
Diffstat (limited to '.emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/attrib.2')
-rw-r--r--.emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/attrib.221
1 files changed, 21 insertions, 0 deletions
diff --git a/.emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/attrib.2 b/.emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/attrib.2
new file mode 100644
index 0000000..566eacf
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/attrib.2
@@ -0,0 +1,21 @@
1#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
2#name : private _attribute ....; public Property ... ... { ... }
3# --
4/// <summary>
5/// $3
6/// </summary>
7private $1 ${2:$(if (> (length text) 0) (format "_%s%s" (downcase (substring text 0 1)) (substring text 1 (length text))) "")};
8
9/// <summary>
10/// ${3:Description}
11/// </summary>
12/// <value><c>$1</c></value>
13public ${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}