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_FuncWithGenericParam_snippet_142754_ENU____.3643236F_FC70_11D3_A536_0090278A1BB8 < prev    next >
Extensible Markup Language  |  2008-06-12  |  1KB  |  38 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>Define a Function with Generic Parameters</Title>
  6.       <Author>Microsoft Corporation</Author>
  7.       <Description>Defines a Function that uses Generic parameters.</Description>
  8.       <Shortcut>FuncGeneric</Shortcut>
  9.     </Header>
  10.     <Snippet>
  11.       <Imports>
  12.       </Imports>
  13.       <Declarations>
  14.         <Literal>
  15.           <ID>FunctionName</ID>
  16.           <Type>String</Type>
  17.           <ToolTip>Replace with function name.</ToolTip>
  18.           <Default>MyFunction</Default>
  19.         </Literal>
  20.         <Literal>
  21.           <ID>ReturnType</ID>
  22.           <Type></Type>
  23.           <ToolTip>Replace with return type.</ToolTip>
  24.           <Default>Integer</Default>
  25.         </Literal>
  26.         <Literal>
  27.           <ID>ReturnValue</ID>
  28.           <Type></Type>
  29.           <ToolTip>Replace with the return value.</ToolTip>
  30.           <Default>0</Default>
  31.         </Literal>
  32.       </Declarations>
  33.       <Code Language="VB" Kind="method decl"><![CDATA[Function $FunctionName$(Of T)() As $ReturnType$
  34.     Return $ReturnValue$
  35. End Function]]></Code>
  36.     </Snippet>
  37.   </CodeSnippet>
  38. </CodeSnippets>