Advertisement
C_Sharp_HUB

C Sharp HUB - Write Your Own Visual Studio Snippets

Sep 16th, 2024
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.56 KB | Source Code | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2.     <CodeSnippets xmlns="">
  3.         <CodeSnippet Format="1.0.0">
  4.             <Header>
  5.                 <Title>Try Catch Snippet</Title>
  6.                 <Author>C-Sharp HUB</Author>
  7.                 <Description>Inserts a try-catch code snippet</Description>
  8.                 <Shortcut>tc</Shortcut>
  9.             </Header>
  10.            
  11.             <Snippet>
  12.                 <Code Language="CSharp">
  13.                     <![CDATA[
  14.                         try
  15.                         {
  16.                         //TODO: Add your code here
  17.                         }
  18.                         catch (Exception ex)
  19.                         {
  20.                         Console.WriteLine(ex.Message);
  21.                         }
  22.                     ]]>
  23.                 </Code>
  24.             </Snippet>
  25.         </CodeSnippet>
  26.     </CodeSnippets>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement