<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
  <CodeSnippet Format="1.0.0">
    <Header>
      <Title>建立含有單一類型項目的清單</Title>
      <Author>Microsoft Corporation</Author>
      <Description>建立儲存特殊類型之項目的集合。</Description>
      <Shortcut>colCreate</Shortcut>
    </Header>
    <Snippet>
      <Imports>
        <Import>
          <Namespace>Microsoft.VisualBasic</Namespace>
        </Import>
      </Imports>
      <Declarations>
        <Literal>
          <ID>type</ID>
          <ToolTip>取代為集合應儲存的項目類型。</ToolTip>
          <Default>String</Default>
        </Literal>
        <Literal>
          <ID>storageVar</ID>
          <ToolTip>取代為支援儲存區的識別項。</ToolTip>
          <Default>names</Default>
        </Literal>
        <Literal>
          <ID>item</ID>
          <ToolTip>取代為要填入集合的項目。</ToolTip>
          <Default>"John"</Default>
        </Literal>
      </Declarations>
      <Code Language="VB" Kind="method body"><![CDATA[' Backing storage -- a generic list
Dim $storageVar$ As New List(Of $type$)() 

' Add an item to the Collection
$storageVar$.Add($item$)]]></Code>
    </Snippet>
  </CodeSnippet>
</CodeSnippets>
