Advertisement
Fleshian

Create New List Code Snipp

Apr 19th, 2014
366
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.98 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/CodeSnippet">
  3.   <CodeSnippet Format="1.0.0">
  4.  
  5.     <Header>
  6.       <Title>cl</Title>
  7.       <Shortcut>cl</Shortcut>
  8.       <Description>Code snippet for creating a list of give objects.</Description>
  9.       <Author>Deyan Dachev</Author>
  10.  
  11.       <SnippetTypes>
  12.         <SnippetType>Expansion</SnippetType>
  13.       </SnippetTypes>
  14.     </Header>
  15.  
  16.     <Snippet>
  17.       <Declarations>
  18.  
  19.         <Literal>
  20.           <ID>type</ID>
  21.           <Default>var</Default>
  22.           <ToolTip>Type of object contained in the list.</ToolTip>
  23.         </Literal>
  24.  
  25.         <Literal>
  26.           <ID>name</ID>
  27.           <Default>name</Default>
  28.           <ToolTip>Name of the list.</ToolTip>
  29.         </Literal>
  30.  
  31.       </Declarations>
  32.  
  33.       <Code Language="CSharp">
  34.         <![CDATA[List<$type$> $name$ = new List<$type$>();
  35.        $end$]]>
  36.       </Code>
  37.     </Snippet>
  38.   </CodeSnippet>
  39. </CodeSnippets>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement