summaryrefslogtreecommitdiffstats
path: root/emacs.d/snippets/text-mode/cc-mode/csharp-mode
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--emacs.d/snippets/text-mode/cc-mode/csharp-mode/attrib7
-rw-r--r--emacs.d/snippets/text-mode/cc-mode/csharp-mode/attrib.121
-rw-r--r--emacs.d/snippets/text-mode/cc-mode/csharp-mode/attrib.221
-rw-r--r--emacs.d/snippets/text-mode/cc-mode/csharp-mode/class21
-rw-r--r--emacs.d/snippets/text-mode/cc-mode/csharp-mode/comment6
-rw-r--r--emacs.d/snippets/text-mode/cc-mode/csharp-mode/comment.14
-rw-r--r--emacs.d/snippets/text-mode/cc-mode/csharp-mode/comment.24
-rw-r--r--emacs.d/snippets/text-mode/cc-mode/csharp-mode/comment.34
-rw-r--r--emacs.d/snippets/text-mode/cc-mode/csharp-mode/method10
-rw-r--r--emacs.d/snippets/text-mode/cc-mode/csharp-mode/namespace7
-rw-r--r--emacs.d/snippets/text-mode/cc-mode/csharp-mode/prop16
-rw-r--r--emacs.d/snippets/text-mode/cc-mode/csharp-mode/region6
-rw-r--r--emacs.d/snippets/text-mode/cc-mode/csharp-mode/using4
-rw-r--r--emacs.d/snippets/text-mode/cc-mode/csharp-mode/using.14
-rw-r--r--emacs.d/snippets/text-mode/cc-mode/csharp-mode/using.24
15 files changed, 139 insertions, 0 deletions
diff --git a/emacs.d/snippets/text-mode/cc-mode/csharp-mode/attrib b/emacs.d/snippets/text-mode/cc-mode/csharp-mode/attrib
new file mode 100644
index 0000000..9e14e22
--- /dev/null
+++ b/emacs.d/snippets/text-mode/cc-mode/csharp-mode/attrib
@@ -0,0 +1,7 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : private attribute ....;
+# --
+/// <summary>
+/// $3
+/// </summary>
+private $1 $2;
diff --git a/emacs.d/snippets/text-mode/cc-mode/csharp-mode/attrib.1 b/emacs.d/snippets/text-mode/cc-mode/csharp-mode/attrib.1
new file mode 100644
index 0000000..099cc7b
--- /dev/null
+++ b/emacs.d/snippets/text-mode/cc-mode/csharp-mode/attrib.1
@@ -0,0 +1,21 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : private attribute ....; public property ... ... { ... }
+# --
+/// <summary>
+/// $3
+/// </summary>
+private $1 $2;
+
+/// <summary>
+/// $4
+/// </summary>
+/// <value>$5</value>
+public $1 $2
+{
+ get {
+ return this.$2;
+ }
+ set {
+ this.$2 = value;
+ }
+}
diff --git a/emacs.d/snippets/text-mode/cc-mode/csharp-mode/attrib.2 b/emacs.d/snippets/text-mode/cc-mode/csharp-mode/attrib.2
new file mode 100644
index 0000000..566eacf
--- /dev/null
+++ b/emacs.d/snippets/text-mode/cc-mode/csharp-mode/attrib.2
@@ -0,0 +1,21 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : private _attribute ....; public Property ... ... { ... }
+# --
+/// <summary>
+/// $3
+/// </summary>
+private $1 ${2:$(if (> (length text) 0) (format "_%s%s" (downcase (substring text 0 1)) (substring text 1 (length text))) "")};
+
+/// <summary>
+/// ${3:Description}
+/// </summary>
+/// <value><c>$1</c></value>
+public ${1:Type} ${2:Name}
+{
+ get {
+ return this.${2:$(if (> (length text) 0) (format "_%s%s" (downcase (substring text 0 1)) (substring text 1 (length text))) "")};
+ }
+ set {
+ this.${2:$(if (> (length text) 0) (format "_%s%s" (downcase (substring text 0 1)) (substring text 1 (length text))) "")} = value;
+ }
+}
diff --git a/emacs.d/snippets/text-mode/cc-mode/csharp-mode/class b/emacs.d/snippets/text-mode/cc-mode/csharp-mode/class
new file mode 100644
index 0000000..1cce2e8
--- /dev/null
+++ b/emacs.d/snippets/text-mode/cc-mode/csharp-mode/class
@@ -0,0 +1,21 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : class ... { ... }
+# --
+${5:public} class ${1:Name}
+{
+ #region Ctor & Destructor
+ /// <summary>
+ /// ${3:Standard Constructor}
+ /// </summary>
+ public $1($2)
+ {
+ }
+
+ /// <summary>
+ /// ${4:Default Destructor}
+ /// </summary>
+ public ~$1()
+ {
+ }
+ #endregion
+}
diff --git a/emacs.d/snippets/text-mode/cc-mode/csharp-mode/comment b/emacs.d/snippets/text-mode/cc-mode/csharp-mode/comment
new file mode 100644
index 0000000..3bd20d3
--- /dev/null
+++ b/emacs.d/snippets/text-mode/cc-mode/csharp-mode/comment
@@ -0,0 +1,6 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : /// <summary> ... </summary>
+# --
+/// <summary>
+/// $1
+/// </summary>
diff --git a/emacs.d/snippets/text-mode/cc-mode/csharp-mode/comment.1 b/emacs.d/snippets/text-mode/cc-mode/csharp-mode/comment.1
new file mode 100644
index 0000000..3c14ad9
--- /dev/null
+++ b/emacs.d/snippets/text-mode/cc-mode/csharp-mode/comment.1
@@ -0,0 +1,4 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : /// <param name="..."> ... </param>
+# --
+/// <param name="$1">$2</param>
diff --git a/emacs.d/snippets/text-mode/cc-mode/csharp-mode/comment.2 b/emacs.d/snippets/text-mode/cc-mode/csharp-mode/comment.2
new file mode 100644
index 0000000..63a6a20
--- /dev/null
+++ b/emacs.d/snippets/text-mode/cc-mode/csharp-mode/comment.2
@@ -0,0 +1,4 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : /// <param name="..."> ... </param>
+# --
+/// <returns>$1</returns>
diff --git a/emacs.d/snippets/text-mode/cc-mode/csharp-mode/comment.3 b/emacs.d/snippets/text-mode/cc-mode/csharp-mode/comment.3
new file mode 100644
index 0000000..394c323
--- /dev/null
+++ b/emacs.d/snippets/text-mode/cc-mode/csharp-mode/comment.3
@@ -0,0 +1,4 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : /// <exception cref="..."> ... </exception>
+# --
+/// <exception cref="$1">$2</exception>
diff --git a/emacs.d/snippets/text-mode/cc-mode/csharp-mode/method b/emacs.d/snippets/text-mode/cc-mode/csharp-mode/method
new file mode 100644
index 0000000..e9a5906
--- /dev/null
+++ b/emacs.d/snippets/text-mode/cc-mode/csharp-mode/method
@@ -0,0 +1,10 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : public void Method { ... }
+# --
+/// <summary>
+/// ${5:Description}
+/// </summary>${2:$(if (string= (upcase text) "VOID") "" (format "%s%s%s" "\n/// <returns><c>" text "</c></returns>"))}
+${1:public} ${2:void} ${3:MethodName}($4)
+{
+$0
+}
diff --git a/emacs.d/snippets/text-mode/cc-mode/csharp-mode/namespace b/emacs.d/snippets/text-mode/cc-mode/csharp-mode/namespace
new file mode 100644
index 0000000..af7c928
--- /dev/null
+++ b/emacs.d/snippets/text-mode/cc-mode/csharp-mode/namespace
@@ -0,0 +1,7 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : namespace .. { ... }
+# --
+namespace $1
+{
+$0
+}
diff --git a/emacs.d/snippets/text-mode/cc-mode/csharp-mode/prop b/emacs.d/snippets/text-mode/cc-mode/csharp-mode/prop
new file mode 100644
index 0000000..df9df91
--- /dev/null
+++ b/emacs.d/snippets/text-mode/cc-mode/csharp-mode/prop
@@ -0,0 +1,16 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : property ... ... { ... }
+# --
+/// <summary>
+/// $5
+/// </summary>
+/// <value>$6</value>
+$1 $2 $3
+{
+ get {
+ return this.$4;
+ }
+ set {
+ this.$4 = value;
+ }
+}
diff --git a/emacs.d/snippets/text-mode/cc-mode/csharp-mode/region b/emacs.d/snippets/text-mode/cc-mode/csharp-mode/region
new file mode 100644
index 0000000..83f9a24
--- /dev/null
+++ b/emacs.d/snippets/text-mode/cc-mode/csharp-mode/region
@@ -0,0 +1,6 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : #region ... #endregion
+# --
+#region $1
+$0
+#endregion
diff --git a/emacs.d/snippets/text-mode/cc-mode/csharp-mode/using b/emacs.d/snippets/text-mode/cc-mode/csharp-mode/using
new file mode 100644
index 0000000..704637e
--- /dev/null
+++ b/emacs.d/snippets/text-mode/cc-mode/csharp-mode/using
@@ -0,0 +1,4 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : using ...;
+# --
+using $1;
diff --git a/emacs.d/snippets/text-mode/cc-mode/csharp-mode/using.1 b/emacs.d/snippets/text-mode/cc-mode/csharp-mode/using.1
new file mode 100644
index 0000000..e9f0bb0
--- /dev/null
+++ b/emacs.d/snippets/text-mode/cc-mode/csharp-mode/using.1
@@ -0,0 +1,4 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : using System;
+# --
+using System;
diff --git a/emacs.d/snippets/text-mode/cc-mode/csharp-mode/using.2 b/emacs.d/snippets/text-mode/cc-mode/csharp-mode/using.2
new file mode 100644
index 0000000..0a3c07d
--- /dev/null
+++ b/emacs.d/snippets/text-mode/cc-mode/csharp-mode/using.2
@@ -0,0 +1,4 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : using System....;
+# --
+using System.$1;