Merge pull request #309 from FredeEB/master

c#: Try/catch, read(line), write(line)
This commit is contained in:
Andrea Crotti 2019-03-16 10:19:29 +00:00 committed by GitHub
commit e378404d01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# contributor : Frede Brændstrup <frederikbraendstrup@gmail.com>
# name: Console.Read(...);
# key: cr
# --
Console.Read(${1:Read});

View File

@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# contributor : Frede Brændstrup <frederikbraendstrup@gmail.com>
# name: Console.ReadLine(...);
# key: crl
# --
Console.ReadLine(${1:Read});

View File

@ -0,0 +1,13 @@
# -*- mode: snippet -*-
# contributor : Frede Brændstrup <frederikbraendstrup@gmail.com>
# name: try{...} catch (ex) {...}
# key: tc
# --
try
{
$0
}
catch (${1:Exception} ex)
{
${2:Console.WriteLine(ex.ToString());}
}

View File

@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# contributor : Frede Brændstrup <frederikbraendstrup@gmail.com>
# name: Console.Write(...);
# key: cw
# --
Console.Write(${1:Write});

View File

@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# contributor : Frede Brændstrup <frederikbraendstrup@gmail.com>
# name: Console.WriteLine(...);
# key: cwl
# --
Console.WriteLine(${1:Write});