Snippet: try-catch

property value
IDE Visual Studio
Language C#
Title try-catch
Shortcut tc
Description try-catch 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;
}