Advertisement
Fleshian

Create Empty Array Code Snipp

Apr 19th, 2014
339
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.13 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>ca</Title>
  7.       <Shortcut>ca</Shortcut>
  8.       <Description>Code snippet for creating an array.</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 array.</ToolTip>
  23.         </Literal>
  24.  
  25.         <Literal>
  26.           <ID>name</ID>
  27.           <Default>name</Default>
  28.           <ToolTip>Name of the array</ToolTip>
  29.         </Literal>
  30.  
  31.         <Literal>
  32.           <ID>size</ID>
  33.           <Default>size</Default>
  34.           <ToolTip>Size of the array.</ToolTip>
  35.         </Literal>
  36.        
  37.       </Declarations>
  38.  
  39.       <Code Language="CSharp">
  40.         <![CDATA[$type$[] $name$ = new $type$[$size$];
  41.        $end$]]>
  42.       </Code>
  43.     </Snippet>
  44.   </CodeSnippet>
  45. </CodeSnippets>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement