Snippet: try-catch-finally

property value
IDE Visual Studio
Language C#
Title try-catch-finally
Shortcut tcf
Description try-catch-finally statement
Snippet Types Expansion
SurroundsWith
Namespaces System

Placeholders

Identifier Tooltip Default Value Editable Function Type Name
exceptionType Exception type Exception yes
identifier Identifier name ex yes

Code

try {
	
}
catch (Exception ex) {
	throw;
}
finally {
}