diff --git a/snippets/csharp-mode/read b/snippets/csharp-mode/read new file mode 100644 index 0000000..09ea916 --- /dev/null +++ b/snippets/csharp-mode/read @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# contributor : Frede Brændstrup +# name: Console.Read(...); +# key: cr +# -- +Console.Read(${1:Read}); \ No newline at end of file diff --git a/snippets/csharp-mode/readline b/snippets/csharp-mode/readline new file mode 100644 index 0000000..bafb95f --- /dev/null +++ b/snippets/csharp-mode/readline @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# contributor : Frede Brændstrup +# name: Console.ReadLine(...); +# key: crl +# -- +Console.ReadLine(${1:Read}); diff --git a/snippets/csharp-mode/trycatch b/snippets/csharp-mode/trycatch new file mode 100644 index 0000000..a76a32a --- /dev/null +++ b/snippets/csharp-mode/trycatch @@ -0,0 +1,13 @@ +# -*- mode: snippet -*- +# contributor : Frede Brændstrup +# name: try{...} catch (ex) {...} +# key: tc +# -- +try +{ + $0 +} +catch (${1:Exception} ex) +{ + ${2:Console.WriteLine(ex.ToString());} +} \ No newline at end of file diff --git a/snippets/csharp-mode/write b/snippets/csharp-mode/write new file mode 100644 index 0000000..a6d9251 --- /dev/null +++ b/snippets/csharp-mode/write @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# contributor : Frede Brændstrup +# name: Console.Write(...); +# key: cw +# -- +Console.Write(${1:Write}); \ No newline at end of file diff --git a/snippets/csharp-mode/writeline b/snippets/csharp-mode/writeline new file mode 100644 index 0000000..2866490 --- /dev/null +++ b/snippets/csharp-mode/writeline @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# contributor : Frede Brændstrup +# name: Console.WriteLine(...); +# key: cwl +# -- +Console.WriteLine(${1:Write}); \ No newline at end of file