home *** CD-ROM | disk | FTP | other *** search
/ ftp.tcs3.com / ftp.tcs3.com.tar / ftp.tcs3.com / DRIVERS / Audio / Office2010 / InfoPath.en-us / InfLR.cab / FL_iterator_snippet_121844_ENU____.3643236F_FC70_11D3_A536_0090278A1BB8 < prev    next >
Extensible Markup Language  |  2009-04-01  |  1KB  |  37 lines

  1. ∩╗┐<?xml version="1.0" encoding="utf-8" ?>
  2. <CodeSnippets  xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
  3.     <CodeSnippet Format="1.0.0">
  4.         <Header>
  5.             <Title>iterator</Title>
  6.             <Shortcut>iterator</Shortcut>
  7.             <Description>Code snippet for a simple iterator</Description>
  8.             <Author>Microsoft Corporation</Author>
  9.             <SnippetTypes>
  10.                 <SnippetType>Expansion</SnippetType>
  11.             </SnippetTypes>
  12.         </Header>
  13.         <Snippet>
  14.             <Declarations>
  15.                 <Literal>
  16.                     <ID>type</ID>
  17.                     <Default>ElementType</Default>
  18.                     <ToolTip>Type to return from the iterator</ToolTip>
  19.                 </Literal>
  20.                 <Literal Editable="false">
  21.                     <ID>SystemCollectionsGenericIEnumeratorG</ID>
  22.                     <Default>System.Collections.Generic.IEnumerator</Default>
  23.                 </Literal>
  24.                 <Literal Editable="false">
  25.                     <ID>Exception</ID>
  26.                     <Function>SimpleTypeName(global::System.Exception)</Function>
  27.                 </Literal>
  28.             </Declarations>
  29.             <Code Language="csharp"><![CDATA[public $SystemCollectionsGenericIEnumeratorG$<$type$> GetEnumerator()
  30. {
  31.     $end$throw new $Exception$("The method or operation is not implemented.");
  32.     yield return default($type$);
  33. }]]>
  34.             </Code>
  35.         </Snippet>
  36.     </CodeSnippet>
  37. </CodeSnippets>